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::SmartMutex< mt_only > Class Template Reference

#include <Mutex.h>

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

Public Member Functions

 SmartMutex (bool rec=true)
 
bool acquire ()
 
bool release ()
 
bool tryacquire ()
 
- Public Member Functions inherited from llvm::sys::MutexImpl
 MutexImpl (bool recursive=true)
 Default Constructor. More...
 
 ~MutexImpl ()
 Destructor. More...
 
bool acquire ()
 Unconditionally acquire the lock. More...
 
bool release ()
 Unconditionally release the lock. More...
 
bool tryacquire ()
 Try to acquire the lock. More...
 

Detailed Description

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

SmartMutex - A 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 89 of file Mutex.h.

Constructor & Destructor Documentation

template<bool mt_only>
llvm::sys::SmartMutex< mt_only >::SmartMutex ( bool  rec = true)
inlineexplicit

Definition at line 93 of file Mutex.h.

Member Function Documentation

template<bool mt_only>
bool llvm::sys::SmartMutex< mt_only >::acquire ( )
inline
template<bool mt_only>
bool llvm::sys::SmartMutex< mt_only >::release ( )
inline
template<bool mt_only>
bool llvm::sys::SmartMutex< mt_only >::tryacquire ( )
inline

Definition at line 123 of file Mutex.h.


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