Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

RazorBack::MTmgrexc_ Class Reference

Exception class for MTmgr. More...

#include <MTmgr.hh>

Inheritance diagram for RazorBack::MTmgrexc_:

Inheritance graph
[legend]
Collaboration diagram for RazorBack::MTmgrexc_:

Collaboration graph
[legend]
List of all members.

Public Methods

 MTmgrexc_ (const char *Thnm, int Tno, int Eno, bool F=false)
 Constructs an exception that is thrown by the method called Thnm, the index of the offending thread is in Tno, the errno value is in Eno. More...

int thread_idx () const
 Returns the index of the thread that caused trouble.

int err_no () const
 Returns the errno that caused the exception.


Private Methods

 MTmgrexc_ ()

Private Attributes

int Errno
 stores the errno variable from <errno.h>.

int Threadno
 stores the idx of the thread that caused trouble.


Detailed Description

Exception class for MTmgr.

Gets thrown when for some reason the threads could not be started. Stores the errno value set by the POSIX thread routines.

Definition at line 246 of file MTmgr.hh.


Constructor & Destructor Documentation

RazorBack::MTmgrexc_::MTmgrexc_ ( const char * Thnm,
int Tno,
int Eno,
bool F = false ) [explicit]
 

Constructs an exception that is thrown by the method called Thnm, the index of the offending thread is in Tno, the errno value is in Eno.

F, the fatality indicator, is false by default (ie. only a warning is issued)

RazorBack::MTmgrexc_::MTmgrexc_ ( ) [private]
 


Member Function Documentation

int RazorBack::MTmgrexc_::thread_idx ( ) const [inline]
 

Returns the index of the thread that caused trouble.

Definition at line 266 of file MTmgr.hh.

int RazorBack::MTmgrexc_::err_no ( ) const [inline]
 

Returns the errno that caused the exception.

Definition at line 269 of file MTmgr.hh.


Member Data Documentation

int RazorBack::MTmgrexc_::Errno [private]
 

stores the errno variable from <errno.h>.

Definition at line 251 of file MTmgr.hh.

int RazorBack::MTmgrexc_::Threadno [private]
 

stores the idx of the thread that caused trouble.

Definition at line 252 of file MTmgr.hh.


The documentation for this class was generated from the following file:
Generated at Wed Aug 21 09:33:35 2002 for The Razorback C++ Library: POSIX Thread Wrappers by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001