00001 #ifndef EDDTHREADMANAGER_H
00002 #define EDDTHREADMANAGER_H
00003
00004 #include <stdlib.h>
00005
00006 #ifndef EDD_EXPORT
00007 #define EDD_EXPORT
00008 #endif
00009
00017 class EDD_EXPORT tcEDDThreadManager
00018 {
00019 public:
00026 typedef enum
00027 {
00028 eeHighest,
00029 eeHigh,
00030 eeMedium,
00031 eeLow,
00032 eeLowest
00033 } teThreadPrio;
00034
00036 tcEDDThreadManager(void) {}
00037
00039 virtual ~tcEDDThreadManager(void) {}
00040
00050 typedef int (*tfThread)(void*, void*, void*);
00051
00064 virtual int StartThread(tfThread apFunc,
00065 teThreadPrio aePrio,
00066 void* apArg1 = NULL,
00067 void* apArg2 = NULL,
00068 void* apArg3 = NULL) = 0;
00069
00077 virtual int StopThread(int ahHandle) = 0;
00078
00088 virtual int Sleep(int anMs, int ahHandle) = 0;
00089 };
00090
00091 #endif