|
The Pedigree Project 0.1
|
#include <Mutex.h>
Inheritance diagram for Mutex:
Collaboration diagram for Mutex:Public Member Functions | |
| Mutex () | |
| Mutex (bool)=delete | |
| ~Mutex () | |
| bool | isOwnedByCurrentThread () const |
Public Member Functions inherited from Semaphore | |
| Semaphore (size_t nInitialValue, bool canInterrupt=true) | |
| virtual | ~Semaphore () |
| MUST_USE_RESULT bool | acquireWithError (size_t n, size_t timeoutSecs, size_t timeoutUsecs, SemaphoreError &error) |
| MUST_USE_RESULT bool | acquireForCompletion (size_t n=1, size_t timeoutSecs=0, size_t timeoutUsecs=0) |
| bool | acquire (size_t n=1, size_t timeoutSecs=0, size_t timeoutUsecs=0) |
| bool | tryAcquire (size_t n=1) |
| MUST_USE_RESULT size_t | drainAvailable () |
| void | release (size_t n=1) |
| ssize_t | getValue () |
| const void * | getDebugMutexOwner () const |
Additional Inherited Members | |
Public Types inherited from Semaphore | |
| enum | SemaphoreError { TimedOut , Interrupted , NoError } |
Protected Member Functions inherited from Semaphore | |
| void | initialiseMutex (bool locked) |
| void | destroyMutex () |
| bool | mutexOwnedByCurrentThread () const |
| Mutex::Mutex | ( | ) |
| bool Mutex::isOwnedByCurrentThread | ( | ) | const |
True only when the calling thread currently owns this mutex.
Definition at line 30 of file Mutex.cc.
Referenced by CacheManager::addCacheRequest(), RequestQueue::addRequest(), RequestQueue::canWaitForCompletion(), RequestQueue::destroy(), RequestQueue::halt(), UnixSocketSyscalls::lastDescriptorClosed(), RequestQueue::publishAsyncRequest(), RequestQueue::resume(), and Device::treeLockHeldByCurrentThread().
Here is the caller graph for this function: