|
nux-0.9.46
|
#include <Nux/SystemThread.h>
Public Member Functions | |
| SystemThread (AbstractThread *Parent=0) | |
| ~SystemThread () | |
| virtual ThreadState | Start (void *arg) |
Protected Member Functions | |
| virtual unsigned int | Run (void *arg) |
| virtual ThreadState | StartChildThread (NThread *thread, bool Modal) |
| virtual void | AddChildThread (NThread *) |
| virtual void | RemoveChildThread (NThread *) |
| virtual void | ChildHasFinished (NThread *app) |
| virtual void | TerminateAllChildThread () |
| virtual bool | ThreadCtor () |
| virtual bool | ThreadDtor () |
Protected Attributes | |
| void * | m_InitData |
| void * | m_ExitData |
Friends | |
| class | WindowThread |
| SystemThread * | CreateSystemThread (AbstractThread *Parent, ThreadUserInitFunc UserInitFunc, void *InitData) |
| nux::SystemThread::SystemThread | ( | AbstractThread * | Parent = 0 | ) |
| nux::SystemThread::~SystemThread | ( | ) |
| virtual void nux::SystemThread::AddChildThread | ( | NThread * | ) | [protected, virtual] |
Implements nux::AbstractThread.
| virtual void nux::SystemThread::ChildHasFinished | ( | NThread * | app | ) | [protected, virtual] |
Implements nux::AbstractThread.
| virtual void nux::SystemThread::RemoveChildThread | ( | NThread * | ) | [protected, virtual] |
Implements nux::AbstractThread.
| virtual unsigned int nux::SystemThread::Run | ( | void * | ) | [protected, virtual] |
Info: Override this method.
This function should contain the body/code of your thread. Notice the signature is similar to that of any worker thread function except for the calling convention.
Implements nux::AbstractThread.
| virtual ThreadState nux::SystemThread::Start | ( | void * | arg | ) | [virtual] |
Info: Starts the thread.
This function starts the thread pointed by m_pThreadFunc with default attributes
Reimplemented from nux::NThread.
| virtual ThreadState nux::SystemThread::StartChildThread | ( | NThread * | thread, |
| bool | Modal | ||
| ) | [protected, virtual] |
Implements nux::AbstractThread.
| virtual void nux::SystemThread::TerminateAllChildThread | ( | ) | [protected, virtual] |
Implements nux::AbstractThread.
| virtual bool nux::SystemThread::ThreadCtor | ( | ) | [protected, virtual] |
Info: Constructor-like function.
Will be called by EntryPoint before executing the thread body. Override this function to provide your extra initialization.
NOTE: do not confuse it with the classes constructor
Reimplemented from nux::NThread.
| virtual bool nux::SystemThread::ThreadDtor | ( | ) | [protected, virtual] |
Info: Destructor-like function.
Will be called by EntryPoint after executing the thread body. Override this function to provide your extra destruction.
NOTE: do not confuse it with the classes constructor
Reimplemented from nux::NThread.
| SystemThread* CreateSystemThread | ( | AbstractThread * | Parent, |
| ThreadUserInitFunc | UserInitFunc, | ||
| void * | InitData | ||
| ) | [friend] |
friend class WindowThread [friend] |
void* nux::SystemThread::m_ExitData [protected] |
Reimplemented from nux::AbstractThread.
void* nux::SystemThread::m_InitData [protected] |
This pointer maybe set by the user in ThreadInitFunc and reused in ThreadExitFunc
Reimplemented from nux::AbstractThread.