LLVM  6.0.0svn
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 "llvm/Support/Mutex.h"

Inheritance diagram for llvm::sys::SmartMutex< mt_only >:
Inheritance graph
[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

◆ SmartMutex()

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

◆ lock()

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

◆ try_lock()

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

Definition at line 126 of file Mutex.h.

◆ unlock()

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

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