|
LLVM
4.0.0
|
Platform agnostic RWMutex class. More...
#include <RWMutex.h>
Public Member Functions | |
Constructors | |
| RWMutexImpl () | |
| Initializes the lock but doesn't acquire it. More... | |
| ~RWMutexImpl () | |
| Releases and removes the lock. More... | |
Methods | |
| bool | reader_acquire () |
| Attempts to unconditionally acquire the lock in reader mode. More... | |
| bool | reader_release () |
| Attempts to release the lock in reader mode. More... | |
| bool | writer_acquire () |
| Attempts to unconditionally acquire the lock in reader mode. More... | |
| bool | writer_release () |
| Attempts to release the lock in writer mode. More... | |
|
explicit |
Initializes the lock but doesn't acquire it.
Default Constructor.
Definition at line 46 of file RWMutex.cpp.
References assert().
| llvm::RWMutexImpl::~RWMutexImpl | ( | ) |
Releases and removes the lock.
Destructor
Definition at line 68 of file RWMutex.cpp.
References assert().
| bool llvm::RWMutexImpl::reader_acquire | ( | ) |
Attempts to unconditionally acquire the lock in reader mode.
If the lock is held by a writer, this method will wait until it can acquire the lock.
Definition at line 77 of file RWMutex.cpp.
References assert().
Referenced by llvm::sys::SmartRWMutex< true >::lock_shared().
| bool llvm::RWMutexImpl::reader_release | ( | ) |
Attempts to release the lock in reader mode.
Definition at line 87 of file RWMutex.cpp.
References assert().
Referenced by llvm::sys::SmartRWMutex< true >::unlock_shared().
| bool llvm::RWMutexImpl::writer_acquire | ( | ) |
Attempts to unconditionally acquire the lock in reader mode.
If the lock is held by any readers, this method will wait until it can acquire the lock.
Definition at line 97 of file RWMutex.cpp.
References assert().
Referenced by llvm::sys::SmartRWMutex< true >::lock().
| bool llvm::RWMutexImpl::writer_release | ( | ) |
Attempts to release the lock in writer mode.
Definition at line 107 of file RWMutex.cpp.
References assert().
Referenced by llvm::sys::SmartRWMutex< true >::unlock().
1.8.6