LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::sys::SmartRWMutex< mt_only > Class Template Reference

#include <RWMutex.h>

Inheritance diagram for llvm::sys::SmartRWMutex< mt_only >:
Inheritance graph
[legend]
Collaboration diagram for llvm::sys::SmartRWMutex< mt_only >:
Collaboration graph
[legend]

Public Member Functions

 SmartRWMutex ()
 
bool reader_acquire ()
 
bool reader_release ()
 
bool writer_acquire ()
 
bool writer_release ()
 
- Public Member Functions inherited from llvm::sys::RWMutexImpl
 RWMutexImpl ()
 Default Constructor. More...
 
 ~RWMutexImpl ()
 Destructor. More...
 
bool reader_acquire ()
 Unconditionally acquire the lock in reader mode. More...
 
bool reader_release ()
 Unconditionally release the lock in reader mode. More...
 
bool writer_acquire ()
 Unconditionally acquire the lock in writer mode. More...
 
bool writer_release ()
 Unconditionally release the lock in write mode. More...
 

Detailed Description

template<bool mt_only>
class llvm::sys::SmartRWMutex< mt_only >

SmartMutex - An R/W mutex with a compile time constant parameter that indicates whether this mutex should become a no-op when we're not running in multithreaded mode.

Definition at line 88 of file RWMutex.h.

Constructor & Destructor Documentation

template<bool mt_only>
llvm::sys::SmartRWMutex< mt_only >::SmartRWMutex ( )
inlineexplicit

Definition at line 91 of file RWMutex.h.

Member Function Documentation

template<bool mt_only>
bool llvm::sys::SmartRWMutex< mt_only >::reader_acquire ( )
inline
template<bool mt_only>
bool llvm::sys::SmartRWMutex< mt_only >::reader_release ( )
inline
template<bool mt_only>
bool llvm::sys::SmartRWMutex< mt_only >::writer_acquire ( )
inline
template<bool mt_only>
bool llvm::sys::SmartRWMutex< mt_only >::writer_release ( )
inline

The documentation for this class was generated from the following file: