LLVM  3.7.0
Public Member Functions | List of all members
llvm::sys::SmartMutex< mt_only > Class Template Reference

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. More...

#include <Mutex.h>

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

Public Member Functions

 SmartMutex (bool rec=true)
 
bool lock ()
 
bool unlock ()
 
bool try_lock ()
 

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 91 of file Mutex.h.

Constructor & Destructor Documentation

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

Definition at line 96 of file Mutex.h.

Member Function Documentation

template<bool mt_only>
bool llvm::sys::SmartMutex< mt_only >::lock ( )
inline

Definition at line 99 of file Mutex.h.

Referenced by llvm::MutexGuard::MutexGuard().

template<bool mt_only>
bool llvm::sys::SmartMutex< mt_only >::try_lock ( )
inline

Definition at line 126 of file Mutex.h.

template<bool mt_only>
bool llvm::sys::SmartMutex< mt_only >::unlock ( )
inline

Definition at line 112 of file Mutex.h.

Referenced by llvm::MutexGuard::~MutexGuard().


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