nux-0.9.46

nux::SystemThread Class Reference

#include <Nux/SystemThread.h>

Inheritance diagram for nux::SystemThread:
nux::AbstractThread nux::NThread

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
SystemThreadCreateSystemThread (AbstractThread *Parent, ThreadUserInitFunc UserInitFunc, void *InitData)

Constructor & Destructor Documentation

nux::SystemThread::SystemThread ( AbstractThread Parent = 0)
nux::SystemThread::~SystemThread ( )

Member Function Documentation

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.


Friends And Related Function Documentation

SystemThread* CreateSystemThread ( AbstractThread Parent,
ThreadUserInitFunc  UserInitFunc,
void *  InitData 
) [friend]
friend class WindowThread [friend]

Field Documentation

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.


The documentation for this class was generated from the following file: