|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiMutex.h>
Inheritance diagram for lti::mutex:


Public Member Functions | |
| mutex () | |
| virtual | ~mutex () |
| void | lock () |
| bool | tryLock () |
| void | unlock () |
| virtual const char * | getTypeName () const |
Protected Attributes | |
| pthread_mutex_t | theMutex |
This object can be used to protect critical sections on multithreaded applications. The same thread should NOT try to lock the mutex more than once. The behavior of this will depend on the operating system: on linux/unix the thread will be locked forever (posix standard); on windows, the thread will count how many lock have been done, but it will not be blocked by the later locks!
|
|
default constructor
|
|
|
destructor
|
|
|
returns the name of this type
Reimplemented from lti::object. |
|
|
wait until lock for mutex becomes available and lock it
|
|
|
Try to lock mutex, but do not block.
|
|
|
unlock mutex
|
|
|
the posix mutex object
|