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

Function tryLockSharedSection

src/common/isc_sync.cpp:2180–2183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2178}
2179
2180static inline bool tryLockSharedSection(volatile FAST_MUTEX_SHARED_SECTION* lpSect)
2181{
2182 return (InterlockedExchange(FIX_TYPE(&lpSect->lSpinLock), 1) == 0);
2183}
2184
2185static inline void unlockSharedSection(volatile FAST_MUTEX_SHARED_SECTION* lpSect)
2186{

Callers 1

enterFastMutexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected