mFrame
載入中...
搜尋中...
無符合項目
Thread.h
1
8#ifndef MFRAME_AC7E7A3E_E6D3_4355_B4DE_6B28DF198293
9#define MFRAME_AC7E7A3E_E6D3_4355_B4DE_6B28DF198293
10
11/* ***************************************************************************************
12 * Include
13 */
14
15//----------------------------------------------------------------------------------------
16
17//----------------------------------------------------------------------------------------
18#include "./../func/Runnable.h"
19#include "./../lang/Object.h"
20#include "./../sys/ThreadPriority.h"
21#include "./../sys/ThreadState.h"
22
23/* ***************************************************************************************
24 * Namespace
25 */
26namespace mframe::sys {
27 class Thread;
28} // namespace mframe::sys
29
30/* ***************************************************************************************
31 * Class/struct/Struct
32 */
34 /* *************************************************************************************
35 * Variable
36 */
37
38 /* *************************************************************************************
39 * Abstract Method
40 */
41
42 /* *************************************************************************************
43 * Construct Method
44 */
45 public:
50 Thread(void);
51
56 virtual ~Thread(void) override;
57
58 /* *************************************************************************************
59 * Operator Method
60 */
61
62 /* *************************************************************************************
63 * Public Method <Abstract>
64 */
65 public:
71 virtual const char* getThreadName(void) const abstract;
72
78 virtual mframe::sys::ThreadPriority getPriority(void) const abstract;
79
85 virtual mframe::sys::ThreadState getState(void) const abstract;
86
92 virtual int getStackSize(void) const abstract;
93
101 virtual bool start(const char* name,
102 mframe::sys::ThreadPriority priority) abstract;
103
108 virtual void notify(void) abstract;
109
117 virtual bool setPriority(mframe::sys::ThreadPriority priority) abstract;
118
119 /* *************************************************************************************
120 * Public Method
121 */
122 public:
129 bool start(const char* name);
130
137 bool isActive(void);
138
139 /* *************************************************************************************
140 * Protected Method
141 */
142
143 /* *************************************************************************************
144 * Private Method
145 */
146
147 /* *************************************************************************************
148 * Static Variable
149 */
150
151 /* *************************************************************************************
152 * Static Method
153 */
154};
155
156/* ***************************************************************************************
157 * End of file
158 */
159
160#endif /* MFRAME_AC7E7A3E_E6D3_4355_B4DE_6B28DF198293 */
Definition Object.h:34
Definition Thread.h:33
Thread(void)
Construct a new Thread object.
virtual mframe::sys::ThreadState getState(void) const override
Get the State object.
virtual const char * getThreadName(void) const override
Get the Thread Name object.
virtual bool setPriority(mframe::sys::ThreadPriority priority) override
Set the Priority object.
virtual bool start(const char *name, mframe::sys::ThreadPriority priority) override
bool start(const char *name)
virtual ~Thread(void) override
Destroy the Thread object.
virtual mframe::sys::ThreadPriority getPriority(void) const override
Get the Priority object.
virtual int getStackSize(void) const override
Get the Stack Size object.
Definition Object.h:27
ThreadState
Definition ThreadState.h:27
ThreadPriority
Definition ThreadPriority.h:27