diff options
Diffstat (limited to 'HBThread.h')
-rw-r--r-- | HBThread.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/HBThread.h b/HBThread.h new file mode 100644 index 000000000..5356e5c1f --- /dev/null +++ b/HBThread.h @@ -0,0 +1,26 @@ +/* $Id: HBThread.h,v 1.3 2003/08/24 13:27:41 titer Exp $ */ + +#ifndef _HB_THREAD_H +#define _HB_THREAD_H + +class HBThread +{ + public: + HBThread( char * name, int priority = 5 ); + virtual ~HBThread(); + void Run(); + void Suspend(); + void Resume(); + + protected: + volatile bool fDie; + + private: + static long ThreadFunc( HBThread * _this ); + virtual void DoWork(); + + char * fName; + int fThread; +}; + +#endif |