acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
filament.h
1// from subsystem/thread/Thread.h on 2026-05-17 03:40 by camilo <3ThomasBorregaardSørensen!!
2#pragma once
3
4
5//#include "subsystem/_common_header.h"
6
7//#include "DesktopSelector.h"
8
9//namespace subsystem
10//{
11
12class thread_implementation;
13
14// /**
15// * Thread priority enumeration.
16// */
17// enum THREAD_PRIORITY
18// {
19// PRIORITY_IDLE,
20// PRIORITY_LOWEST,
21// PRIORITY_BELOW_NORMAL,
22// PRIORITY_NORMAL,
23// PRIORITY_ABOVE_NORMAL,
24// PRIORITY_HIGHEST,
25// PRIORITY_TIME_CRITICAL
26// };
27
35 class CLASS_DECL_ACME filament :
36 virtual public ::object
37{
38public:
39
40
41};
42
43//
44// ::pointer < thread_implementation > m_pthreadimplementation;
45//
46//
47// //::pointer < Thread > m_pthreadThis;
48//
49// /**
50// * Creates new thread.
51// * @remark thread is suspended by default.
52// */
53// Thread();
54// /**
55// * Deletes thread.
56// * @remark does not stops thread execution if it's still running.
57// */
58// ~Thread() override;
59// /**
60// * Suspends thread execution.
61// * @return false on error.
62// */
63// virtual bool suspendThread();
64// /**
65// * Resume thread execution.
66// * @return false on error.
67// */
68// virtual bool resumeThread();
69// /**
70// * Terminates thread execution.
71// * @remark thread-safe.
72// */
73// virtual void setThreadToFinish();
74//
75//
76//
77//
78// /**
79// * Checks if thread is not dead.
80// * @return true if thread is not dead (still running or suspended).
81// */
82// virtual bool isThreadActive() const;
83//
84// /**
85// * Returns thread id.
86// */
87// virtual ::iptr getThreadId() const;
88//
89// /**
90// * Sets thread priority.
91// * @param value thread priority.
92// */
93// virtual bool setThreadPriority(THREAD_PRIORITY value);
94//
95// /**
96// * Suspends the execution of the current thread until the time-out interval elapses.
97// * @param time time to sleep.
98// */
99// virtual void threadSleep(const class ::time & time);
100//
101// /**
102// * Yield execution to the next ready thread.
103// */
104// virtual void threadYield();
105//
106// //protected:
107// /**
108// * Returns true if terminate() method was called.
109// * @remark thread-safe.
110// */
111// virtual bool isThreadTerminating();
112//
113// /**
114// * Slot of terminate() signal.
115// * Method called from terminate() method.
116// * Can be overrided by subclasses to gracefully shutdown thread.
117// */
118// virtual void onTerminateThread();
119//
120// /**
121// * Thread's runnable body.
122// */
123// virtual void onRunThread();
124//
125// //private:
126// /**
127// * WinApi thread func.
128// */
129// //static DWORD WINAPI threadProc(LPVOID pThread);
130//
131// // This function calling before call a derived onRunThread() function to
132// // perform any additional action.
133// virtual void onInitThread();
134//
135//
136// virtual void waitIfSuspended();
137//
138// //private:
139// /**
140// * Win32 thread handle.
141// */
142// //HANDLE m_hThread;
143// /**
144// * Thread ID.
145// */
146// //DWORD m_threadID;
147// /**
148// * Activity flag.
149// */
150// //bool m_active;
151// /**
152// * Terminating flag.
153// */
154// //volatile bool m_terminated;
155// };
156//
166//
353//
354//
373//
374
375
376} // namespace subsystem
377
378
Definition filament.h:37