MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ISC_mutex_unlock

Function ISC_mutex_unlock

src/common/isc_sync.cpp:2483–2501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2481
2482
2483int ISC_mutex_unlock(struct mtx* mutex)
2484{
2485/**************************************
2486 *
2487 * I S C _ m u t e x _ u n l o c k ( W I N _ N T )
2488 *
2489 **************************************
2490 *
2491 * Functional description
2492 * Release a mutex.
2493 *
2494 **************************************/
2495
2496 if (mutex->mtx_fast.lpSharedInfo) {
2497 return !leaveFastMutex(&mutex->mtx_fast);
2498 }
2499
2500 return !ReleaseMutex(mutex->mtx_fast.hEvent);
2501}
2502
2503
2504void ISC_mutex_set_spin_count (struct mtx *mutex, ULONG spins)

Callers 1

mutexUnlockMethod · 0.85

Calls 1

leaveFastMutexFunction · 0.85

Tested by

no test coverage detected