SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::RWLockRef Struct Reference

Semi-safe reference for RWLock.

Inheritance diagram for SDL::RWLockRef:
Inheritance graph
[legend]
Collaboration diagram for SDL::RWLockRef:
Collaboration graph
[legend]

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.
 
RWLockoperator= (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...
 

Constructor & Destructor Documentation

◆ RWLockRef()

SDL::RWLockRef::RWLockRef ( RWLockParam  resource)
inline
Parameters
resourcea RWLockRaw or RWLock.

This does not takes ownership!


The documentation for this struct was generated from the following file: