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 ufm::util {
25 class CompletionWaiter;
26} // namespace ufm::util
27
28/* ***************************************************************************************
29 * Class/Interface/Struct/Enum
30 */
31
38 /* *************************************************************************************
39 * Variable
40 */
41 private:
42 ufm::sys::Thread* mThread;
43
44 /* *************************************************************************************
45 * Abstract Method
46 */
47
48 /* *************************************************************************************
49 * Construct Method
50 */
51 public:
58
64 virtual ~CompletionWaiter(void) override;
65
66 /* *************************************************************************************
67 * Operator Method
68 */
69
70 /* *************************************************************************************
71 * Override Method
72 */
73
74 /* *************************************************************************************
75 * Public Method
76 */
77 public:
87 bool waitDone(int timeout);
88
97 inline bool waitDone(void) {
98 return this->waitDone(0);
99 }
100
101 /* *************************************************************************************
102 * Protected Method
103 */
104 protected:
111 void notify(void);
112
113 /* *************************************************************************************
114 * Private Method
115 */
116
117 /* *************************************************************************************
118 * Static Variable
119 */
120
121 /* *************************************************************************************
122 * Static Method
123 */
124};
125
126/* ***************************************************************************************
127 * End of file
128 */
129
130#endif /* MFRAME_C86F5223_D663_4D7A_9C3D_8AD153DA0E4D */
物件基底類別
Definition Object.h:63
執行緒類別
Definition Thread.h:49
完成等待器類別
Definition CompletionWaiter.h:37
bool waitDone(int timeout)
等待操作完成
virtual ~CompletionWaiter(void) override
銷毀完成等待器對象
bool waitDone(void)
無超時等待操作完成
Definition CompletionWaiter.h:97
void notify(void)
通知等待完成
CompletionWaiter(void)
構造一個新的完成等待器對象
Definition Iterable.h:28