LLVM API Documentation
#include <RWMutex.h>
Public Member Functions | |
| SmartRWMutex () | |
| bool | reader_acquire () |
| Unconditionally acquire the lock in reader mode. | |
| bool | reader_release () |
| Unconditionally release the lock in reader mode. | |
| bool | writer_acquire () |
| Unconditionally acquire the lock in writer mode. | |
| bool | writer_release () |
| Unconditionally release the lock in write mode. | |
Definition at line 87 of file RWMutex.h.
| llvm::sys::SmartRWMutex< mt_only >::SmartRWMutex | ( | ) | [inline, explicit] |
| bool llvm::sys::SmartRWMutex< mt_only >::reader_acquire | ( | ) | [inline] |
Unconditionally acquire the lock in reader mode.
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.
Reimplemented from llvm::sys::RWMutexImpl.
Definition at line 92 of file RWMutex.h.
Referenced by llvm::ConstantFP::get(), and llvm::ConstantInt::get().
| bool llvm::sys::SmartRWMutex< mt_only >::reader_release | ( | ) | [inline] |
Unconditionally release the lock in reader mode.
Attempts to release the lock in reader mode.
Reimplemented from llvm::sys::RWMutexImpl.
Definition at line 102 of file RWMutex.h.
Referenced by llvm::ConstantFP::get(), and llvm::ConstantInt::get().
| bool llvm::sys::SmartRWMutex< mt_only >::writer_acquire | ( | ) | [inline] |
Unconditionally acquire the lock in writer mode.
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.
Reimplemented from llvm::sys::RWMutexImpl.
| bool llvm::sys::SmartRWMutex< mt_only >::writer_release | ( | ) | [inline] |
Unconditionally release the lock in write mode.
Attempts to release the lock in writer mode.
Reimplemented from llvm::sys::RWMutexImpl.