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

ScopedReader - RAII acquisition of a reader lock. More...

#include "llvm/Support/RWMutex.h"

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

Public Member Functions

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

Public Attributes

SmartRWMutex< mt_only > & mutex
 

Detailed Description

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

ScopedReader - RAII acquisition of a reader lock.

Definition at line 146 of file RWMutex.h.

Constructor & Destructor Documentation

◆ SmartScopedReader()

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

Definition at line 149 of file RWMutex.h.

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

◆ ~SmartScopedReader()

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

Definition at line 153 of file RWMutex.h.

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

Member Data Documentation

◆ mutex

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

Definition at line 147 of file RWMutex.h.


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