|
SDL3pp
A slim C++ wrapper for SDL3
|
Semi-safe reference for RWLock.


Public Member Functions | |
| RWLockRef (RWLockParam resource) | |
| Constructs from RWLockParam. More... | |
| RWLockRef (const RWLockRef &other) | |
| Copy constructor. | |
| ~RWLockRef () | |
| Destructor. | |
Public Member Functions inherited from SDL::RWLock | |
| constexpr | RWLock (const RWLockRaw resource) |
| Constructs from RWLockParam. More... | |
| constexpr | RWLock (const RWLock &other)=delete |
| Copy constructor. | |
| constexpr | RWLock (RWLock &&other) |
| Move constructor. | |
| constexpr | RWLock (const RWLockRef &other)=delete |
| constexpr | RWLock (RWLockRef &&other)=delete |
| RWLock () | |
| Create a new read/write lock. More... | |
| ~RWLock () | |
| Destructor. | |
| RWLock & | operator= (RWLock other) |
| Assignment operator. | |
| constexpr RWLockRaw | get () const |
| Retrieves underlying RWLockRaw. | |
| constexpr RWLockRaw | release () |
| Retrieves underlying RWLockRaw and clear this. | |
| constexpr auto | operator<=> (const RWLock &other) const =default |
| Comparison. | |
| constexpr bool | operator== (std::nullptr_t _) const |
| Comparison. | |
| constexpr | operator bool () const |
| Converts to bool. | |
| constexpr | operator RWLockParam () const |
| Converts to RWLockParam. | |
| void | Destroy () |
| Destroy a read/write lock created with RWLock.RWLock(). More... | |
| void | LockForReading () |
| Lock the read/write lock for read only operations. More... | |
| void | LockForWriting () |
| Lock the read/write lock for write operations. More... | |
| void | TryLockForReading () |
| Try to lock a read/write lock for reading without blocking. More... | |
| void | TryLockForWriting () |
| Try to lock a read/write lock for writing without blocking. More... | |
| void | Unlock () |
| Unlock the read/write lock. More... | |
|
inline |
| resource | a RWLockRaw or RWLock. |
This does not takes ownership!