mFrame
載入中...
搜尋中...
無符合項目
CompletionWaiter.h
1
7#ifndef MFRAME_C86F5223_D663_4D7A_9C3D_8AD153DA0E4D
8#define MFRAME_C86F5223_D663_4D7A_9C3D_8AD153DA0E4D
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../lang/Flushable.h"
18#include "./../lang/Object.h"
19#include "./../sys/Thread.h"
20
21/* ***************************************************************************************
22 * Namespace
23 */
24namespace mframe::util {
25 class CompletionWaiter;
26}
27
28/* ***************************************************************************************
29 * Class/Interface/Struct/Enum
30 */
32 /* *************************************************************************************
33 * Variable
34 */
35 private:
36 mframe::sys::Thread* mThread;
37
38 /* *************************************************************************************
39 * Abstract Method
40 */
41
42 /* *************************************************************************************
43 * Construct Method
44 */
45 public:
51
56 virtual ~CompletionWaiter(void) override;
57
58 /* *************************************************************************************
59 * Operator Method
60 */
61
62 /* *************************************************************************************
63 * Public Method <Override>
64 */
65
66 /* *************************************************************************************
67 * Public Method
68 */
69 public:
77 bool waitDone(int timeout);
78
85 inline bool waitDone(void) {
86 return this->waitDone(0);
87 }
88
89 /* *************************************************************************************
90 * Protected Method
91 */
92 protected:
93 void notify(void);
94
95 /* *************************************************************************************
96 * Private Method
97 */
98
99 /* *************************************************************************************
100 * Static Variable
101 */
102
103 /* *************************************************************************************
104 * Static Method
105 */
106};
107
108/* ***************************************************************************************
109 * End of file
110 */
111
112#endif /* MFRAME_C86F5223_D663_4D7A_9C3D_8AD153DA0E4D */
Definition Object.h:34
Definition Thread.h:33
Definition CompletionWaiter.h:31
bool waitDone(int timeout)
等待完成
CompletionWaiter(void)
Construct a new object.
bool waitDone(void)
Definition CompletionWaiter.h:85
virtual ~CompletionWaiter(void) override
Destroy the object.
Definition Array.h:22