|
Internal Interface Wrap
API reference
|
RAII shared (reader) lock guard for any shared mutex. More...
#include <PlatformMutex.h>
Public Member Functions | |
| PlatformSharedLock (SharedMutex &mutex, uint32_t timeout_ms=0) noexcept | |
| ~PlatformSharedLock () noexcept | |
| PlatformSharedLock (const PlatformSharedLock &)=delete | |
| PlatformSharedLock & | operator= (const PlatformSharedLock &)=delete |
| PlatformSharedLock (PlatformSharedLock &&other) noexcept | |
| PlatformSharedLock & | operator= (PlatformSharedLock &&other) noexcept |
| bool | IsLocked () const noexcept |
| void | Unlock () noexcept |
Private Attributes | |
| SharedMutex * | mutex_ |
| bool | locked_ |
RAII shared (reader) lock guard for any shared mutex.
| SharedMutex | Type providing lock_shared()/try_lock_shared_for()/unlock_shared(). |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |
|
private |