fltk::Mutex Class Reference
Inherited by
fltk::RecursiveMutex, and
fltk::SignalMutex.
List of all members.
|
Public Member Functions |
void | lock () |
bool | trylock () |
void | unlock () |
Protected Member Functions |
| Mutex (const pthread_mutexattr_t *a) |
Friends |
class | SignalMutex |
Detailed Description
"Mutual-exclusion lock" for simple multithreaded programs. Calling lock() will wait until nobody else has the lock and then will return.
Calling lock() more than once will "deadlock"! To avoid this, use
RecursiveMutex.