MCPcopy Create free account
hub / github.com/Clarionos/clarion / locking_callback

Method locking_callback

libraries/fc/src/crypto/aes.cpp:412–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412void openssl_thread_config::locking_callback(int mode, int type, const char *file, int line)
413{
414 if (mode & CRYPTO_LOCK)
415 openssl_mutexes[type].lock();
416 else
417 openssl_mutexes[type].unlock();
418}
419
420// Warning: Things get complicated if third-party libraries also try to install their their own
421// OpenSSL thread functions. Right now, we don't install our own handlers if another library has

Callers

nothing calls this directly

Calls 1

unlockMethod · 0.80

Tested by

no test coverage detected