HydraHook
Direct3D and Core Audio hooking library for Windows
Loading...
Searching...
No Matches
SrwLock.h File Reference

RAII guards for Win32 SRWLOCK. More...

#include <Windows.h>

Go to the source code of this file.

Classes

class  SrwSharedLock
 Shared (reader) lock. Call unlock() to release before COM Release or similar. More...
class  SrwExclusiveLock
 Exclusive (writer) lock. Call unlock() to release before COM Release or similar. More...
class  SrwTryExclusiveLock
 Non-blocking exclusive lock. True when the lock was acquired. More...
class  SrwTrySharedLock
 Non-blocking shared lock. True when the lock was acquired. More...

Detailed Description

RAII guards for Win32 SRWLOCK.

Operates on caller-owned SRWLOCK values (typically SRWLOCK_INIT statics) so there is no dynamic construction and no DLL_PROCESS_DETACH destructor work.

Definition in file SrwLock.h.