Dummy implementation of a mutex.
More...
Dummy implementation of a mutex.
POSIX implementation of a mutex.
Definition at line 33 of file mutex-none.hpp.
Initializes the given mutex object and checks for errors.
Definition at line 61 of file mutex-posix.hpp.
Destroys the given mutex object and checks for errors.
Definition at line 86 of file mutex-posix.hpp.
Locks the given mutex object and checks for errors.
If the mutex is already locked by another thread, the calling thread is suspended until the mutex is unlocked.
If the mutex is already locked by the calling thread, the same applies, thus effectively causing the calling thread to deadlock. (This is because we use "fast" pthread mutexes without error checking.)
Definition at line 35 of file mutex-none.hpp.
Unlocks the given mutex object and checks for errors.
The mutex is assumed to be locked and owned by the calling thread.
Definition at line 36 of file mutex-none.hpp.
pthread_mutexattr_t Mutex::_attr |
|
private |
pthread_mutex_t Mutex::_mutex |
|
private |
The documentation for this class was generated from the following files:
- /home/bbc/buildbot/slave/doxygen-compiler2/source/cacao/src/threads/none/mutex-none.hpp
- /home/bbc/buildbot/slave/doxygen-compiler2/source/cacao/src/threads/posix/mutex-posix.hpp