mFrame
載入中...
搜尋中...
無符合項目
EntryPoint.h
1
7#ifndef MFRAME_E8463782_967B_46FF_930C_98A3EB2CAF31
8#define MFRAME_E8463782_967B_46FF_930C_98A3EB2CAF31
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../lang/Object.h"
18#include "./../sys/Thread.h"
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace mframe::sys {
24 class EntryPoint;
25}
26
27/* ***************************************************************************************
28 * Class/Interface/Struct/Enum
29 */
32 /* *************************************************************************************
33 * Variable
34 */
35 private:
36 void (*mSetup)(mframe::sys::Thread*);
37 void (*mLoop)(mframe::sys::Thread*);
38
39 /* *************************************************************************************
40 * Abstract Method
41 */
42
43 /* *************************************************************************************
44 * Construct Method
45 */
46 public:
53 EntryPoint(void (*setup)(mframe::sys::Thread*), void (*loop)(mframe::sys::Thread*));
54
59 virtual ~EntryPoint(void) override;
60
61 /* *************************************************************************************
62 * Operator Method
63 */
64
65 /* *************************************************************************************
66 * Public Method <Override>- mframe::func::Runnable
67 */
68 public:
69 virtual void run(void) override;
70
71 /* *************************************************************************************
72 * Public Method
73 */
74
75 /* *************************************************************************************
76 * Protected Method
77 */
78
79 /* *************************************************************************************
80 * Private Method
81 */
82
83 /* *************************************************************************************
84 * Static Variable
85 */
86
87 /* *************************************************************************************
88 * Static Method
89 */
90};
91
92/* ***************************************************************************************
93 * End of file
94 */
95
96#endif /* MFRAME_E8463782_967B_46FF_930C_98A3EB2CAF31 */
Definition Object.h:34
Definition EntryPoint.h:31
virtual void run(void) override
執行方法。
EntryPoint(void(*setup)(mframe::sys::Thread *), void(*loop)(mframe::sys::Thread *))
Construct a new Entry Point object.
virtual ~EntryPoint(void) override
Destroy the Entry Point object.
Definition Thread.h:33
Definition Object.h:27
Definition Runnable.h:29