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

C:/temp/src/j2k/Deprecated/old_18mar_diff/nto/Basic_PThread.txt File Reference


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)

Define Documentation

#define MC_OnError rc,
msg       OnError( errorcode, __FILE__, __LINE__, msg )
 

Definition at line 55 of file Basic_PThread.txt.


Function Documentation

void OnError int    errorcode,
const char *    filename,
int    line,
const char *    msg
 

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 }

PThread  
 

void* Wrapper void *    ptrThis [static]
 

pid_t getPID  
 

Definition at line 37 of file Basic_PThread.txt.

00037 { return pid; }

virtual void run   [pure virtual]
 

void start int    start_prio = 20
 

void stop  
 

void yield  
 

virtual ~PThread   [virtual]
 


Generated on Sun Oct 14 18:47:15 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001