23
#ifndef SYSTEMTHREAD_H
24
#define SYSTEMTHREAD_H
28
class WindowCompositor;
31
class SystemThread: public AbstractThread
33
DECLARE_OBJECT_TYPE(SystemThread, AbstractThread);
35
SystemThread(AbstractThread* Parent = 0);
38
virtual ThreadState Start(void* arg);
41
virtual unsigned int Run(void* arg);
43
virtual ThreadState StartChildThread(NThread* thread, bool Modal);
44
virtual void AddChildThread(NThread*);
45
virtual void RemoveChildThread(NThread*);
46
virtual void ChildHasFinished(NThread* app);
47
virtual void TerminateAllChildThread();
49
// std::list<NThread*> m_ChildThread;
50
// SystemThread* m_Parent;
51
// ThreadUserInitFunc m_UserInitFunc;
52
// ThreadUserExitFunc m_UserExitFunc;
55
This pointer maybe set by the user in ThreadInitFunc and reused in ThreadExitFunc
61
Info: Constructor-like function.
63
Will be called by EntryPoint before executing the thread body.
64
Override this function to provide your extra initialization.
66
NOTE: do not confuse it with the classes constructor
68
virtual bool ThreadCtor();
71
Info: Destructor-like function.
73
Will be called by EntryPoint after executing the thread body.
74
Override this function to provide your extra destruction.
76
NOTE: do not confuse it with the classes constructor
78
virtual bool ThreadDtor();
81
This pointer maybe set by the user in ThreadInitFunc and reused in ThreadExitFunc
84
SystemThread(const SystemThread&);
85
// Does not make sense for a singleton. This is a self assignment.
86
SystemThread& operator=(const SystemThread&);
87
// Declare operator adress-of as private
88
SystemThread* operator &();
93
friend class GfxServerImpl;
94
friend class WindowThread;
99
#endif // SYSTEMTHREAD_H
23
#ifndef SYSTEMTHREAD_H
24
#define SYSTEMTHREAD_H
28
class WindowCompositor;
31
class SystemThread: public AbstractThread
33
DECLARE_OBJECT_TYPE(SystemThread, AbstractThread);
35
SystemThread(AbstractThread* Parent = 0);
38
virtual ThreadState Start(void* arg);
41
virtual unsigned int Run(void* arg);
43
virtual ThreadState StartChildThread(NThread* thread, bool Modal);
44
virtual void AddChildThread(NThread*);
45
virtual void RemoveChildThread(NThread*);
46
virtual void ChildHasFinished(NThread* app);
47
virtual void TerminateAllChildThread();
49
// std::list<NThread*> m_ChildThread;
50
// SystemThread* m_Parent;
51
// ThreadUserInitFunc m_UserInitFunc;
52
// ThreadUserExitFunc m_UserExitFunc;
55
This pointer maybe set by the user in ThreadInitFunc and reused in ThreadExitFunc
61
Info: Constructor-like function.
63
Will be called by EntryPoint before executing the thread body.
64
Override this function to provide your extra initialization.
66
NOTE: do not confuse it with the classes constructor
68
virtual bool ThreadCtor();
71
Info: Destructor-like function.
73
Will be called by EntryPoint after executing the thread body.
74
Override this function to provide your extra destruction.
76
NOTE: do not confuse it with the classes constructor
78
virtual bool ThreadDtor();
81
This pointer maybe set by the user in ThreadInitFunc and reused in ThreadExitFunc
84
SystemThread(const SystemThread&);
85
// Does not make sense for a singleton. This is a self assignment.
86
SystemThread& operator=(const SystemThread&);
87
// Declare operator adress-of as private
88
SystemThread* operator &();
93
friend class GfxServerImpl;
94
friend class WindowThread;
99
#endif // SYSTEMTHREAD_H