fltk
::
Mutex
fltk::Mutex Class Reference
Inherited by
fltk::RecursiveMutex
, and
fltk::SignalMutex
.
List of all members.
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
.
Public Member Functions
void
lock
()
bool
trylock
()
void
unlock
()
Protected Member Functions
Mutex
(const pthread_mutexattr_t *a)
Friends
class
SignalMutex
Fri Apr 2 15:19:55 2010.
©2007 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.