Locks the Mutex object in the Sync object.
More...
#include <Sync.h>
|
| Lock (const Sync *sync, bool try_sync=false) |
| Locks the Mutex object in the Sync object.
|
|
| Lock (const Mutex &mutex, bool try_lock=false) |
| Constructor.
|
|
| ~Lock () |
| Destructor.
|
|
bool | acquire (bool try_lock=false, const TimeSpec &timeout={}) |
| Returns true when if it was acquired.
|
|
bool | release () |
|
| operator bool () const |
| Returns true if the class was locked. Always true when try_lock is false.
|
|
Locks the Mutex object in the Sync object.
◆ Lock()
sf::Sync::Lock::Lock |
( |
const Sync * |
sync, |
|
|
bool |
try_sync = false |
|
) |
| |
|
inlineexplicit |
The documentation for this class was generated from the following file: