libMesh
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
libMesh::Threads::spin_mutex::scoped_lock Class Reference

#include <threads_none.h>

Public Member Functions

 scoped_lock ()
 
 scoped_lock (spin_mutex &)
 
void acquire (spin_mutex &)
 
void release ()
 
 scoped_lock ()
 
 scoped_lock (spin_mutex &in_smutex)
 
 ~scoped_lock ()
 
void acquire (spin_mutex &in_smutex)
 
void release ()
 
 scoped_lock ()
 
 scoped_lock (spin_mutex &in_smutex)
 
 ~scoped_lock ()
 
void acquire (spin_mutex &in_smutex)
 
void release ()
 
 scoped_lock ()
 
 scoped_lock (spin_mutex &in_smutex)
 
 ~scoped_lock ()
 
void acquire (spin_mutex &in_smutex)
 
void release ()
 

Private Attributes

spin_mutexsmutex
 

Detailed Description

Definition at line 150 of file threads_none.h.

Constructor & Destructor Documentation

◆ scoped_lock() [1/8]

libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( )
inline

Definition at line 153 of file threads_none.h.

153{}

◆ scoped_lock() [2/8]

libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex )
inlineexplicit

Definition at line 154 of file threads_none.h.

154{}

◆ scoped_lock() [3/8]

libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( )
inline

Definition at line 97 of file threads_pthread.h.

References smutex.

◆ scoped_lock() [4/8]

libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex in_smutex)
inlineexplicit

Definition at line 98 of file threads_pthread.h.

98: smutex(&in_smutex) { smutex->lock(); }

References libMesh::Threads::spin_mutex::lock(), and smutex.

◆ ~scoped_lock() [1/3]

libMesh::Threads::spin_mutex::scoped_lock::~scoped_lock ( )
inline

Definition at line 100 of file threads_pthread.h.

References release().

◆ scoped_lock() [5/8]

libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( )
inline

Definition at line 125 of file threads_pthread.h.

125: smutex(nullptr) {}

References smutex.

◆ scoped_lock() [6/8]

libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex in_smutex)
inlineexplicit

Definition at line 126 of file threads_pthread.h.

126: smutex(&in_smutex) { smutex->lock(); }

References libMesh::Threads::spin_mutex::lock(), and smutex.

◆ ~scoped_lock() [2/3]

libMesh::Threads::spin_mutex::scoped_lock::~scoped_lock ( )
inline

Definition at line 128 of file threads_pthread.h.

128{ release(); }

References release().

◆ scoped_lock() [7/8]

libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( )
inline

Definition at line 155 of file threads_pthread.h.

155: smutex(nullptr) {}

References smutex.

◆ scoped_lock() [8/8]

libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex in_smutex)
inlineexplicit

Definition at line 156 of file threads_pthread.h.

156: smutex(&in_smutex) { smutex->lock(); }

References libMesh::Threads::spin_mutex::lock(), and smutex.

◆ ~scoped_lock() [3/3]

libMesh::Threads::spin_mutex::scoped_lock::~scoped_lock ( )
inline

Definition at line 158 of file threads_pthread.h.

158{ release(); }

References release().

Member Function Documentation

◆ acquire() [1/4]

void libMesh::Threads::spin_mutex::scoped_lock::acquire ( spin_mutex )
inline

Definition at line 155 of file threads_none.h.

155{}

◆ acquire() [2/4]

void libMesh::Threads::spin_mutex::scoped_lock::acquire ( spin_mutex in_smutex)
inline

Definition at line 102 of file threads_pthread.h.

102{ smutex = &in_smutex; smutex->lock(); }

References libMesh::Threads::spin_mutex::lock(), and smutex.

◆ acquire() [3/4]

void libMesh::Threads::spin_mutex::scoped_lock::acquire ( spin_mutex in_smutex)
inline

Definition at line 130 of file threads_pthread.h.

130{ smutex = &in_smutex; smutex->lock(); }

References libMesh::Threads::spin_mutex::lock(), and smutex.

◆ acquire() [4/4]

void libMesh::Threads::spin_mutex::scoped_lock::acquire ( spin_mutex in_smutex)
inline

Definition at line 160 of file threads_pthread.h.

160{ smutex = &in_smutex; smutex->lock(); }

References libMesh::Threads::spin_mutex::lock(), and smutex.

◆ release() [1/4]

void libMesh::Threads::spin_mutex::scoped_lock::release ( )
inline

Definition at line 156 of file threads_none.h.

156{}

Referenced by ~scoped_lock().

◆ release() [2/4]

void libMesh::Threads::spin_mutex::scoped_lock::release ( )
inline

Definition at line 103 of file threads_pthread.h.

103{ if (smutex) smutex->unlock(); smutex = nullptr; }

References smutex, and libMesh::Threads::spin_mutex::unlock().

◆ release() [3/4]

void libMesh::Threads::spin_mutex::scoped_lock::release ( )
inline

Definition at line 131 of file threads_pthread.h.

131{ if (smutex) smutex->unlock(); smutex = nullptr; }

References smutex, and libMesh::Threads::spin_mutex::unlock().

◆ release() [4/4]

void libMesh::Threads::spin_mutex::scoped_lock::release ( )
inline

Definition at line 161 of file threads_pthread.h.

161{ if (smutex) smutex->unlock(); smutex = nullptr; }

References smutex, and libMesh::Threads::spin_mutex::unlock().

Member Data Documentation

◆ smutex

spin_mutex * libMesh::Threads::spin_mutex::scoped_lock::smutex
private

Definition at line 106 of file threads_pthread.h.

Referenced by acquire(), release(), scoped_lock(), and scoped_lock().


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