MCPcopy Create free account
hub / github.com/3rdparty/libprocess / dyn_lock_function

Function dyn_lock_function

src/openssl.cpp:263–274  ·  view source on GitHub ↗

OpenSSL callback for locking and unlocking dynamic "locks", abstracted by the CRYPTO_dynlock_value structure.

Source from the content-addressed store, hash-verified

261// OpenSSL callback for locking and unlocking dynamic "locks",
262// abstracted by the CRYPTO_dynlock_value structure.
263void dyn_lock_function(
264 int mode,
265 CRYPTO_dynlock_value* value,
266 const char* /*file*/,
267 int /*line*/)
268{
269 if (mode & CRYPTO_LOCK) {
270 value->mutex.lock();
271 } else {
272 value->mutex.unlock();
273 }
274}
275
276
277// OpenSSL callback for destroying dynamic "locks", abstracted by the

Callers

nothing calls this directly

Calls 2

lockMethod · 0.80
unlockMethod · 0.80

Tested by

no test coverage detected