Rename mutex variable (#26)

Co-authored-by: Antonio Andelic <antonio.andelic@memgraph.io>
This commit is contained in:
antonio2368 2020-10-20 17:26:07 +02:00 committed by GitHub
parent 2e7d3822fe
commit 98f83e0c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ unsigned long IdFunction() {
}
void SetupThreading() {
mutex.resize(CRYPTO_num_locks());
crypto_locks.resize(CRYPTO_num_locks());
CRYPTO_set_id_callback(IdFunction);
CRYPTO_set_locking_callback(LockingFunction);
}
@ -43,7 +43,7 @@ void SetupThreading() {
void Cleanup() {
CRYPTO_set_id_callback(nullptr);
CRYPTO_set_locking_callback(nullptr);
mutex.clear();
crypto_locks.clear();
}
#else
void SetupThreading() {}