LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::sys::SmartScopedWriter< mt_only > Struct Template Reference

ScopedWriter - RAII acquisition of a writer lock. More...

#include "llvm/Support/RWMutex.h"

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

Public Member Functions

 SmartScopedWriter (SmartRWMutex< mt_only > &m)
 
 ~SmartScopedWriter ()
 

Public Attributes

SmartRWMutex< mt_only > & mutex
 

Detailed Description

template<bool mt_only>
struct llvm::sys::SmartScopedWriter< mt_only >

ScopedWriter - RAII acquisition of a writer lock.

Definition at line 162 of file RWMutex.h.

Constructor & Destructor Documentation

◆ SmartScopedWriter()

template<bool mt_only>
llvm::sys::SmartScopedWriter< mt_only >::SmartScopedWriter ( SmartRWMutex< mt_only > &  m)
inlineexplicit

Definition at line 165 of file RWMutex.h.

References llvm::sys::SmartRWMutex< mt_only >::lock().

◆ ~SmartScopedWriter()

template<bool mt_only>
llvm::sys::SmartScopedWriter< mt_only >::~SmartScopedWriter ( )
inline

Definition at line 169 of file RWMutex.h.

References llvm::sys::SmartRWMutex< mt_only >::unlock().

Member Data Documentation

◆ mutex

template<bool mt_only>
SmartRWMutex<mt_only>& llvm::sys::SmartScopedWriter< mt_only >::mutex

Definition at line 163 of file RWMutex.h.


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