MCPcopy Create free account
hub / github.com/chrxh/alien / locking_callback

Method locking_callback

external/cpp-httplib/httplib.h:7277–7286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7275
7276 private:
7277 static void locking_callback(int mode, int type, const char* /*file*/,
7278 int /*line*/) {
7279 auto& lk = (*openSSL_locks_)[static_cast<size_t>(type)];
7280 if (mode & CRYPTO_LOCK) {
7281 lk.lock();
7282 }
7283 else {
7284 lk.unlock();
7285 }
7286 }
7287 };
7288
7289#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected