22 #include <glog/logging.h> 28 bool initialized_ =
false;
35 void initializeOpenSSLLocked() {
44 void cleanupOpenSSLLocked() {
55 std::lock_guard<std::mutex>
g(initMutex());
56 initializeOpenSSLLocked();
60 std::lock_guard<std::mutex>
g(initMutex());
61 cleanupOpenSSLLocked();
65 std::lock_guard<std::mutex>
g(initMutex());
70 std::lock_guard<std::mutex>
g(initMutex());
71 CHECK(!initialized_) <<
"OpenSSL is already initialized";
73 initializeOpenSSLLocked();
77 std::lock_guard<std::mutex>
g(initMutex());
81 LOG(
INFO) <<
"Ignoring setSSLLockTypes after initialization";
std::map< int, LockType > LockTypeMapping
void setLockTypes(LockTypeMapping inLockTypes)
constexpr detail::Map< Move > move
—— Concurrent Priority Queue Implementation ——
int OPENSSL_init_ssl(uint64_t, const OPENSSL_INIT_SETTINGS *)
static map< string, int > m
void setLockTypes(std::map< int, LockType > inLockTypes)
void setLockTypesAndInit(LockTypeMapping inLockTypes)
bool isLockDisabled(int lockId)
bool isSSLLockDisabled(int lockId)