13 return static_cast<PSRWLOCK
>(lock);
17 ::AcquireSRWLockShared(
GetLock(rwlock));
22 ::ReleaseSRWLockShared(
GetLock(rwlock));
27 ::AcquireSRWLockExclusive(
GetLock(rwlock));
32 return !!::TryAcquireSRWLockExclusive(
GetLock(rwlock));
36 ::ReleaseSRWLockExclusive(
GetLock(rwlock));
43 m_rwlock =
new SRWLOCK;
44 InitializeSRWLock(
GetLock(m_rwlock));
A class that represents a running process on the host machine.
pthread_rwlock_t rwlock_t
static bool WriteTryLock(lldb::rwlock_t rwlock)
static PSRWLOCK GetLock(lldb::rwlock_t lock)
static bool ReadLock(lldb::rwlock_t rwlock)
static bool WriteLock(lldb::rwlock_t rwlock)
static bool WriteUnlock(lldb::rwlock_t rwlock)
static bool ReadUnlock(lldb::rwlock_t rwlock)