$extrastylesheet
libMesh::Threads::spin_mutex::scoped_lock Class Reference

#include <threads.h>

List of all members.

Public Member Functions

 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 &)
void acquire (spin_mutex &)
void release ()

Private Attributes

spin_mutexsmutex

Detailed Description

Definition at line 344 of file threads.h.


Constructor & Destructor Documentation

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

Definition at line 347 of file threads.h.

References smutex.

: smutex(NULL) {}
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex in_smutex) [inline, explicit]

Definition at line 348 of file threads.h.

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

: smutex(&in_smutex) { smutex->lock(); }
libMesh::Threads::spin_mutex::scoped_lock::~scoped_lock ( ) [inline]

Definition at line 350 of file threads.h.

References release().

{ release(); }
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( ) [inline]

Definition at line 376 of file threads.h.

References smutex.

: smutex(NULL) {}
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex in_smutex) [inline, explicit]

Definition at line 377 of file threads.h.

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

: smutex(&in_smutex) { smutex->lock(); }
libMesh::Threads::spin_mutex::scoped_lock::~scoped_lock ( ) [inline]

Definition at line 379 of file threads.h.

References release().

{ release(); }
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( ) [inline]

Definition at line 870 of file threads.h.

{}
libMesh::Threads::spin_mutex::scoped_lock::scoped_lock ( spin_mutex ) [inline, explicit]

Definition at line 871 of file threads.h.

{}

Member Function Documentation

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

Definition at line 352 of file threads.h.

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

{ smutex = &in_smutex; smutex->lock(); }
void libMesh::Threads::spin_mutex::scoped_lock::acquire ( spin_mutex in_smutex) [inline]

Definition at line 381 of file threads.h.

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

{ smutex = &in_smutex; smutex->lock(); }
void libMesh::Threads::spin_mutex::scoped_lock::acquire ( spin_mutex ) [inline]

Definition at line 872 of file threads.h.

{}
void libMesh::Threads::spin_mutex::scoped_lock::release ( ) [inline]

Definition at line 353 of file threads.h.

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

Referenced by ~scoped_lock().

{ if(smutex) smutex->unlock(); smutex = NULL; }
void libMesh::Threads::spin_mutex::scoped_lock::release ( ) [inline]

Definition at line 382 of file threads.h.

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

{ if(smutex) smutex->unlock(); smutex = NULL; }
void libMesh::Threads::spin_mutex::scoped_lock::release ( ) [inline]

Definition at line 873 of file threads.h.

{}

Member Data Documentation

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

Definition at line 356 of file threads.h.

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


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