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

Method Lock

extern/re2/util/mutex.h:71–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69Mutex::Mutex() { InitializeSRWLock(&mutex_); }
70Mutex::~Mutex() { }
71void Mutex::Lock() { AcquireSRWLockExclusive(&mutex_); }
72void Mutex::Unlock() { ReleaseSRWLockExclusive(&mutex_); }
73void Mutex::ReaderLock() { AcquireSRWLockShared(&mutex_); }
74void Mutex::ReaderUnlock() { ReleaseSRWLockShared(&mutex_); }

Callers 1

MutexLockMethod · 0.45

Calls 2

AcquireSRWLockExclusiveFunction · 0.85
lockMethod · 0.45

Tested by

no test coverage detected