blob: 5356e5c1fcda435cae7d43026867c041403da284 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|