-
Notifications
You must be signed in to change notification settings - Fork 0
/
Thread_System.h
28 lines (28 loc) · 969 Bytes
/
Thread_System.h
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
27
28
#pragma once
//-----------------------------------------------------------------
#define MAX_THREADS 3
unsigned __stdcall Thread_0(void*);
unsigned __stdcall Thread_1(void*);
unsigned __stdcall Thread_2(void*);
//-----------------------------------------------------------------
class Thread_System
{
//-------------------------------------------------------------
public:
//---------------------------------------------------------
bool bActive[MAX_THREADS];
HANDLE Thread_Handle[MAX_THREADS];
unsigned Thread_Id[MAX_THREADS];
//---------------------------------------------------------
//constructors
Thread_System(void);
~Thread_System(void);
//---------------------------------------------------------
bool bStopRequest[MAX_THREADS];
//---------------------------------------------------------
//functions
void Start(int Id);
void Stop(int Id);
void Exit(void);
//-------------------------------------------------------------
};