WARNING : this is the documentation for an old version of SFML. The documentation for the latest official release is available through the main menu.
WARNING : this is the documentation for an old version of SFML. The documentation for the latest official release is available through the main menu.
Lock is an exception-safe automatic wrapper for locking and unlocking mutexes. More...
#include <Lock.hpp>
Inheritance diagram for sf::Lock: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 | ) |
| sf::Lock::~Lock | ( | ) |
Destructor (unlocks the mutex)