-
Notifications
You must be signed in to change notification settings - Fork 0
/
ThreadManger.h
57 lines (44 loc) · 1.1 KB
/
ThreadManger.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* avoid multiple inclusions */
#ifndef GUI_THREADMANAGER_H
#define GUI_THREADMANAGER_H
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iomanip>
#include <thread>
#include <queue>
#include <unordered_map>
#include <mutex>
#include <condition_variable>
#include "CommonDefines.h"
using namespace std;
class GUI_Top;
class GUI_System;
class ThreadManger
{
class JobBaseClass
{
public:
void (GUI_System::* EndEvent)();
// void (GUI_System::* BodyEvent)();
};
class JobsClass
{
public:
// JobBaseClass CPUJobs;
// JobBaseClass GPUJobs;
JobBaseClass RTLJobs;
};
GUI_Top* MyScreen;
public:
void ServicesStartLoop();
// if the following three declarations are moved, then the behaviour changes
JobsClass MyJobs;
queue<pair<string, int>> Replies;
ServiceStruct* StructQuitApplication;
// the previous 3 declarations affect the 'StructLoadSystem'
ServiceStruct* StructLoadSystem;
ThreadManger();
void SetParent(GUI_Top* SetParent);
};
#endif