Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Lock is an exception-safe automatic wrapper for locking and unlocking mutexes. More...
#include <SFML/System/Lock.hpp>
Public Member Functions | |
| Lock (Mutex &Mutex) | |
| Construct the lock with a target mutex (lock it). | |
| ~Lock () | |
| Destructor (unlocks the mutex). | |
Lock is an exception-safe automatic wrapper for locking and unlocking mutexes.
| sf::Lock::Lock | ( | Mutex & | Mutex | ) |
Construct the lock with a target mutex (lock it).
| Mutex | : Mutex to lock |
| sf::Lock::~Lock | ( | ) |
Destructor (unlocks the mutex).