Defines | |
#define | MC_OnError(rc, msg) OnError( errorcode, __FILE__, __LINE__, msg ) |
Functions | |
PThread () | |
virtual | ~PThread () |
void | start (int start_prio=20) |
void | stop () |
void | yield () |
pid_t | getPID () |
virtual void | run ()=0 |
void * | Wrapper (void *ptrThis) |
void | OnError (int errorcode, const char *filename, int line, const char *msg) |
|
Definition at line 55 of file Basic_PThread.txt. |
|
Definition at line 57 of file Basic_PThread.txt. 00058 { 00059 if ( errorcode > 0 ) 00060 { 00061 fprintf( stderr, "\n\n***********************************************\n" ); 00062 fprintf( stderr, "An error of type #%d has occured\n", errorcode ); 00063 fprintf( stderr, "at line %d of file %s,\n\n", line, filename ); 00064 fprintf( stderr, "Here's a brief description of the error:\n" ); 00065 fprintf( stderr, "[%s]\n", msg ); 00066 fprintf( stderr, "\n\n***********************************************\n\n"); 00067 00068 fflush( stdout ); 00069 fflush( stderr ); 00070 exit( 2 ); 00071 } 00072 } |
|
|
|
|
|
Definition at line 37 of file Basic_PThread.txt. 00037 { return pid; } |
|
|
|
Referenced by Timing::start().
|
|
|
|
|
|
|