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

Function ISC_mutex_lock

src/common/isc_sync.cpp:2442–2460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2440
2441
2442int ISC_mutex_lock(struct mtx* mutex)
2443{
2444/**************************************
2445 *
2446 * I S C _ m u t e x _ l o c k ( W I N _ N T )
2447 *
2448 **************************************
2449 *
2450 * Functional description
2451 * Seize a mutex.
2452 *
2453 **************************************/
2454
2455 const DWORD status = (mutex->mtx_fast.lpSharedInfo) ?
2456 enterFastMutex(&mutex->mtx_fast, INFINITE) :
2457 WaitForSingleObject(mutex->mtx_fast.hEvent, INFINITE);
2458
2459 return (status == WAIT_OBJECT_0 || status == WAIT_ABANDONED) ? FB_SUCCESS : FB_FAILURE;
2460}
2461
2462
2463int ISC_mutex_lock_cond(struct mtx* mutex)

Callers 1

mutexLockMethod · 0.85

Calls 1

enterFastMutexFunction · 0.85

Tested by

no test coverage detected