Mutex Class Reference

Inherited by RecursiveMutex, and SignalMutex.

List of all members.

Public Member Functions

void lock ()
void unlock ()
bool trylock ()

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.


The documentation for this class was generated from the following file:
Sun Jan 7 00:55:18 2007. FLTK ©2006 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.