fltk::RecursiveMutex Class Reference
Inherits
fltk::Mutex.
List of all members.
|
Public Member Functions |
void | lock () |
bool | trylock () |
void | unlock () |
Detailed Description
"Mutual exclusion lock" to protect data in multithreaded programs. This is a "recursive lock". Calling lock() will wait until nobody else has the lock and then will take it. Calling lock() multiple times by the same thread is allowed, and unlock() must then be called the same number of times before another thread can get the lock.