ezEngine  Milestone 7
ezTaskWorkerThread Class Reference
Inheritance diagram for ezTaskWorkerThread:

Private Member Functions

 ezTaskWorkerThread (ezWorkerThreadType::Enum ThreadType, ezUInt32 iThreadNumber)
 Tells the worker thread what tasks to execute and which thread index it has.
virtual ezUInt32 Run () override
 The run function can be used to implement a long running task in a thread in a platform independent way.
void ComputeThreadUtilization (ezTime TimePassed)
ezTime GetAndResetThreadActiveTime ()

Private Attributes

volatile bool m_bActive
ezWorkerThreadType::Enum m_WorkerType
ezUInt8 m_uiWorkerThreadNumber
bool m_bExecutingTask
ezTime m_StartedWorking
ezTime m_ThreadActiveTime
double m_ThreadUtilization
ezAtomicInteger32 m_iTasksExecutionCounter
ezUInt32 m_uiNumTasksExecuted


class ezTaskSystem

Additional Inherited Members

- Public Types inherited from ezThread
enum  ezThreadStatus { Created = 0, Running, Finished }
 Describes the thread status.
- Public Member Functions inherited from ezThread
 ezThread (const char *szName="ezThread", ezUInt32 uiStackSize=128 *1024)
 Initializes the runnable class.
virtual ~ezThread ()
 Destructor checks if the thread is deleted while still running, which is not allowed as this is a data hazard.
ezThreadStatus GetThreadStatus () const
 Returns the thread status.
bool IsRunning () const
 Helper function to determine if the thread is running.
const char * GetThreadName () const
 Returns the thread name.
- Static Public Member Functions inherited from ezOSThread
static ezInt32 GetThreadCount ()
 Returns how many ezOSThreads are currently active.
- Protected Attributes inherited from ezOSThread
ezThreadHandle m_Handle
ezThreadID m_ThreadID
ezOSThreadEntryPoint m_EntryPoint
void * m_pUserData
const char * m_szName
ezUInt32 m_uiStackSize

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