MCPcopy Create free account
hub / github.com/SIPp/sipp / locking_function

Function locking_function

src/sslsocket.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46static MUTEX_TYPE *mutex_buf = nullptr;
47
48static void locking_function(int mode, int n, const char *file, int line)
49{
50 (void)file; /* unused, avoid warnings */
51 (void)line; /* unused, avoid warnings */
52
53 if (mode & CRYPTO_LOCK)
54 MUTEX_LOCK(mutex_buf[n]);
55 else
56 MUTEX_UNLOCK(mutex_buf[n]);
57}
58
59#ifndef WIN32
60static unsigned long id_function()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected