Rename mutex variable (#26)
Co-authored-by: Antonio Andelic <antonio.andelic@memgraph.io>
This commit is contained in:
parent
2e7d3822fe
commit
98f83e0c88
@ -35,7 +35,7 @@ unsigned long IdFunction() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SetupThreading() {
|
void SetupThreading() {
|
||||||
mutex.resize(CRYPTO_num_locks());
|
crypto_locks.resize(CRYPTO_num_locks());
|
||||||
CRYPTO_set_id_callback(IdFunction);
|
CRYPTO_set_id_callback(IdFunction);
|
||||||
CRYPTO_set_locking_callback(LockingFunction);
|
CRYPTO_set_locking_callback(LockingFunction);
|
||||||
}
|
}
|
||||||
@ -43,7 +43,7 @@ void SetupThreading() {
|
|||||||
void Cleanup() {
|
void Cleanup() {
|
||||||
CRYPTO_set_id_callback(nullptr);
|
CRYPTO_set_id_callback(nullptr);
|
||||||
CRYPTO_set_locking_callback(nullptr);
|
CRYPTO_set_locking_callback(nullptr);
|
||||||
mutex.clear();
|
crypto_locks.clear();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void SetupThreading() {}
|
void SetupThreading() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user