FRIBParallelanalysis
1.0
FrameworkforMPIParalleldataanalysisatFRIB
|
#include <MonitorException.h>
Public Member Functions | |
CMonitorException (int correctOwner, int actualOwner, const char *file, const char *line) | |
CMonitorException (const CMonitorException &rhs) | |
CMonitorException & | operator= (const CMonitorException &rhs) |
int | operator== (const CMonitorException &rhs) const |
int | operator!= (const CMonitorException &rhs) const |
virtual const char * | ReasonText () const |
virtual int | ReasonCode () const |
![]() | |
CException (const char *pszAction) | |
CException (const std::string &rsAction) | |
CException (const CException &aCException) | |
CException & | operator= (const CException &aCException) |
int | operator== (const CException &aCException) const |
int | operator!= (const CException &rException) const |
const char * | getAction () const |
const char * | WasDoing () const |
Additional Inherited Members | |
![]() | |
void | setAction (const char *pszAction) |
void | setAction (const std::string &rsAction) |
virtual void | DoAssign (const CException &rhs) |
Objects of this class are exceptions that describe errors in a monitor states. A monitor is a synchronization primitive that is supported by the threads library in the NSCL DAQ base software libraries.
There are several operations on monitors that require the monitor to be held by the invoking thread. This exception is thrown if that is not the case.
CMonitorException::CMonitorException | ( | int | correctOwner, |
int | actualOwner, | ||
const char * | file, | ||
const char * | line | ||
) |
Construct the exception. The context text will be "Performing operations on a Synchronizable object" The reason will be: Mutex should be owned by correctOwner but was owned by actualOwner at FILE:LINE : WasDoing
correctOwner | - The Pid of the thread that should be owning the mutex. |
actualOwner | - The Pid of the thread that actually owns the mutex. |
file | - Name of the file in which the exception was constructed Typically use FILE |
line | - Line number in file where exception was constructed, Typically use LINE |
CMonitorException::CMonitorException | ( | const CMonitorException & | rhs | ) |
Copy construction:
int CMonitorException::operator!= | ( | const CMonitorException & | rhs | ) | const |
Inequality is when equality is not true:
CMonitorException & CMonitorException::operator= | ( | const CMonitorException & | rhs | ) |
Assignement
int CMonitorException::operator== | ( | const CMonitorException & | rhs | ) | const |
Comparison for equality.
|
virtual |
Return the computer usable reason code. This is always -1 in this class.
Reimplemented from CException.
|
virtual |
Return human readable exception information. See the class description to see what that means.
Reimplemented from CException.