55 friend class EThreadBase;
83 virtual Dword threadProc(pVoid arg) = 0;
97 Void init(pVoid arg,
size_t stackSize = 0);
114 static Void sleep(Int milliseconds);
131 Bool isInitialized();
183 Void
signal(Int sig) { pthread_kill(m_thread, sig); }
194 static pVoid _threadProc(pVoid arg);
207 #endif // #ifndef __ETBASIC_H
Bool isWaitingToRun()
Determines if the thread is waiting to run.
Definition: etbasic.h:150
the threadProc has exited and the thread is no longer running
Definition: etbasic.h:67
Macros for various standard C library functions and standard includes.
the thread is running
Definition: etbasic.h:65
Bool isDoneRunning()
Determines if the thread has finished running.
Definition: etbasic.h:168
Defines base class for exceptions and declaration helper macros.
Bool isRunning()
Determines if the thread is running.
Definition: etbasic.h:159
An abstract class that represents contains the threadProc() that will be run in a separate thread...
Definition: etbasic.h:53
The base class for exceptions derived from std::exception.
Definition: eerror.h:94
RunState getRunState()
Returns the current thread run state.
Definition: etbasic.h:140
A private mutex (the mutex data is allocated from either the heap or stack).
Definition: esynch.h:175
Contains definitions for synchronization objects.
Void signal(Int sig)
Definition: etbasic.h:183
list< EThreadBasic * > EThreadPtrList
Definition: etbasic.h:40
Void Initialize()
Initializes/starts the PFCP stack. This should be called after setting the initial configuration valu...
Definition: epfcp.cpp:120
the thread is waiting to run
Definition: etbasic.h:63
RunState
EThreadBasic run states.
Definition: etbasic.h:60