libMesh
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 134 of file threads_none.h.

Constructor & Destructor Documentation

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

Definition at line 137 of file threads_none.h.

137 {}
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex )
explicit

Definition at line 138 of file threads_none.h.

138 {}
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( )

Definition at line 97 of file threads_pthread.h.

const class libmesh_nullptr_t libmesh_nullptr
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex in_smutex)
explicit

Definition at line 98 of file threads_pthread.h.

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

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

Definition at line 100 of file threads_pthread.h.

References release().

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

Definition at line 125 of file threads_pthread.h.

const class libmesh_nullptr_t libmesh_nullptr
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex in_smutex)
explicit

Definition at line 126 of file threads_pthread.h.

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

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

Definition at line 128 of file threads_pthread.h.

References release().

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

Definition at line 155 of file threads_pthread.h.

const class libmesh_nullptr_t libmesh_nullptr
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex in_smutex)
explicit

Definition at line 156 of file threads_pthread.h.

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

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

Definition at line 158 of file threads_pthread.h.

References release().

Member Function Documentation

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

Definition at line 102 of file threads_pthread.h.

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

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

Definition at line 130 of file threads_pthread.h.

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

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

Definition at line 139 of file threads_none.h.

139 {}
void libMesh::Threads::spin_mutex::scoped_lock::acquire ( spin_mutex in_smutex)

Definition at line 160 of file threads_pthread.h.

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

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

Definition at line 103 of file threads_pthread.h.

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

103 { if (smutex) smutex->unlock(); smutex = libmesh_nullptr; }
const class libmesh_nullptr_t libmesh_nullptr
void libMesh::Threads::spin_mutex::scoped_lock::release ( )

Definition at line 131 of file threads_pthread.h.

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

131 { if (smutex) smutex->unlock(); smutex = libmesh_nullptr; }
const class libmesh_nullptr_t libmesh_nullptr
void libMesh::Threads::spin_mutex::scoped_lock::release ( )
void libMesh::Threads::spin_mutex::scoped_lock::release ( )

Definition at line 161 of file threads_pthread.h.

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

161 { if (smutex) smutex->unlock(); smutex = libmesh_nullptr; }
const class libmesh_nullptr_t libmesh_nullptr

Member Data Documentation

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

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