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