class SmartRWMutex

Declaration

template <bool mt_only>
class SmartRWMutex { /* full declaration omitted */ };

Description

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.

Declared at: llvm/include/llvm/Support/RWMutex.h:94

Templates

bool mt_only

Method Overview

Methods

bool lock()

Declared at: llvm/include/llvm/Support/RWMutex.h:135

bool lock_shared()

Declared at: llvm/include/llvm/Support/RWMutex.h:110

bool unlock()

Declared at: llvm/include/llvm/Support/RWMutex.h:148

bool unlock_shared()

Declared at: llvm/include/llvm/Support/RWMutex.h:122