Collaboration diagram for XFcThreadObject:
Public Member Functions | |
XFCIMPORT INT32 | waitDeath () |
Waits the thread to end and returns the exit code. | |
XFCIMPORT INT | create () |
Creates thread and starts running it immediately. | |
virtual XFCIMPORT | ~XFcThreadObject () |
Virtual destructor. | |
Protected Member Functions | |
XFCIMPORT | XFcThreadObject () |
Protected constructor. | |
virtual INT32 | run ()=0 |
Thread function (this is where the thread runs). | |
Static Protected Member Functions | |
XFCIMPORT INT32 | threadEntry (void *) |
Thread creation. | |
Protected Attributes | |
XFcThread * | mThread |
Actual thread object. | |
Private Member Functions | |
void | runThread () |
Executes the thread. | |
void | getTls () |
Stores handle to the system core of the current thread. | |
void | setTls () |
Sets the handle to the system core on the current thread. | |
Private Attributes | |
XFcSystemCore * | mXfc |
Handle to the system core for this thread. |
The implementor of the derived class is supposed to provide the implementation for the pure virtual run method. The public interface of XFcThreadObject is available to external agents so that they can manage the state of XFcThreadObject object.
Using threads generally slows down some systems.
|
Virtual destructor.
|
|
Protected constructor.
|
|
Creates thread and starts running it immediately.
|
|
Stores handle to the system core of the current thread.
|
|
Thread function (this is where the thread runs). Override this to implement the thread's functionality.
|
|
Executes the thread.
|
|
Sets the handle to the system core on the current thread.
|
|
Thread creation.
|
|
Waits the thread to end and returns the exit code.
|
|
Actual thread object.
|
|
Handle to the system core for this thread.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |