43 static void delete_func( ThreadImpl* impl );
113 virtual void run()=0;
120 static void usleep(
unsigned int usec);
124 static void msleep(
unsigned int msecs);
128 static void sleep(
float secs);
133 bool running()
const;
138 bool runningNoLock()
const;
186 template<
class T,
void (T::*func)()>
undocument this line if you encounter any issues!
Definition: Any.h:37
void unlock()
unlocks the mutex
Definition: Mutex.h:111
Simple object oriented thread class wrapping the pthread library.
Definition: Thread.h:90
Interface class for cheap copyable classes using a smart ptr.
Definition: ShallowCopyable.h:131
#define ICLUtils_API
this macros are important for creating dll's
Definition: CompatMacros.h:171
static void saveDelete(T *&pointer)
static utility function which deletes a pointer and sets it to NULL
Definition: Thread.h:174
static void saveCall(T *obj)
static utility function which ensures Thread-safety for object functions
Definition: Thread.h:187
#define ICL_DELETE(X)
Definition: Macros.h:242
Mutex class of the ICL.
Definition: Mutex.h:54
void lock()
locks the mutex
Definition: Mutex.h:91
virtual void finalize()
at the end of the stop function, this function is called
Definition: Thread.h:116