MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / mtx_unlock

Function mtx_unlock

deps/jemalloc/test/src/mtx.c:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void
53mtx_unlock(mtx_t *mtx) {
54#ifdef _WIN32
55 LeaveCriticalSection(&mtx->lock);
56#elif (defined(JEMALLOC_OS_UNFAIR_LOCK))
57 os_unfair_lock_unlock(&mtx->lock);
58#else
59 pthread_mutex_unlock(&mtx->lock);
60#endif
61}

Callers 2

mtx.cFile · 0.50
thd_startFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected