LLVM API Documentation

Public Member Functions
llvm::sys::SmartMutex< mt_only > Class Template Reference

#include <Mutex.h>

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

List of all members.

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


Constructor & Destructor Documentation

template<bool mt_only>
llvm::sys::SmartMutex< mt_only >::SmartMutex ( bool  rec = true) [inline, explicit]

Definition at line 94 of file Mutex.h.


Member Function Documentation

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

Definition at line 97 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 124 of file Mutex.h.

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

Definition at line 110 of file Mutex.h.

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


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