sf::Mutex Class Reference
Mutex defines a mutex (MUTual EXclusion) object, that allows a thread to lock critical instructions to avoid simultaneous access with other threads. More...
#include <Mutex.hpp>
Inheritance diagram for sf::Mutex:
Public Member Functions | |
Mutex () | |
Default constructor. | |
~Mutex () | |
Destructor. | |
void | Lock () |
Lock the mutex. | |
void | Unlock () |
Unlock the mutex. |
Detailed Description
Mutex defines a mutex (MUTual EXclusion) object, that allows a thread to lock critical instructions to avoid simultaneous access with other threads.
The Win32 version uses critical sections, as it is faster than mutexes.
See Lock for an efficient way of using it.
Definition at line 45 of file Win32/Mutex.hpp.
Constructor & Destructor Documentation
Member Function Documentation
The documentation for this class was generated from the following files:
:: Copyright © 2007-2008 Laurent Gomila, all rights reserved :: Documentation generated by doxygen 1.5.2 ::