A scope guard that guarantees that whatever happens between when it gets created and when it is destroyed is done "serially" (each MPI rank will run in turn starting from 0) More...
#include <SerializerGuard.h>
Public Member Functions | |
SerializerGuard (const libMesh::Parallel::Communicator &comm, bool warn=true) | |
~SerializerGuard () | |
Protected Attributes | |
const libMesh::Parallel::Communicator & | _comm |
bool | _warn |
A scope guard that guarantees that whatever happens between when it gets created and when it is destroyed is done "serially" (each MPI rank will run in turn starting from 0)
Definition at line 24 of file SerializerGuard.h.
SerializerGuard::SerializerGuard | ( | const libMesh::Parallel::Communicator & | comm, |
bool | warn = true |
||
) |
Definition at line 16 of file SerializerGuard.C.
SerializerGuard::~SerializerGuard | ( | ) |
Definition at line 22 of file SerializerGuard.C.
|
protected |
Definition at line 31 of file SerializerGuard.h.
Referenced by SerializerGuard(), and ~SerializerGuard().
|
protected |
Definition at line 32 of file SerializerGuard.h.
Referenced by SerializerGuard(), and ~SerializerGuard().