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.

Wed Jun 17 08:53:25 2009. FLTK ©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.