libMesh::Threads::BoolAcquire Class Reference

#include <threads.h>

Public Member Functions

 BoolAcquire (bool &b)
 ~BoolAcquire ()

Private Attributes

bool & _b

Detailed Description

We use a class to turn Threads::in_threads on and off, to be exception-safe.

Definition at line 98 of file threads.h.

Constructor & Destructor Documentation

libMesh::Threads::BoolAcquire::BoolAcquire ( bool &  b)

Definition at line 101 of file threads.h.

References _b, and libMesh::libmesh_assert().

101 : _b(b) { libmesh_assert(!_b); _b = true; }
libMesh::Threads::BoolAcquire::~BoolAcquire ( )

Definition at line 103 of file threads.h.

References _b, and libMesh::libmesh_assert().

103 { libmesh_assert(_b); _b = false; }

Member Data Documentation

bool& libMesh::Threads::BoolAcquire::_b

Definition at line 105 of file threads.h.

Referenced by BoolAcquire(), and ~BoolAcquire().

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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:33 UTC

Hosted By: Logo