Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
Abstract task to be dispatched by SysThreadPool to worker threads. More...
Public Member Functions | |
const unsigned int & | get_id () const |
return the id of the worker thread currently running execution_entry() | |
![]() | |
bool | is_kindof (const CoreBaseObject &object) const |
virtual size_t | get_memory_size () const |
CoreString | get_class_info_name () const |
const unsigned long & | get_class_info_id () const |
virtual bool | is_kindof (const CoreClassInfo &cinfo) const |
virtual const CoreClassInfo & | get_class_info () const |
template<class T > | |
T * | cast () |
template<class T > | |
const T * | cast () const |
![]() | |
bool | is_kindof (const CoreClassInfo &cinfo) const |
Protected Member Functions | |
virtual void | execution_entry (const unsigned int &id)=0 |
execution entry point to overload to perform the task | |
Friends | |
class | SysThreadPool |
class | SysThreadPoolWorker |
Additional Inherited Members | |
![]() | |
static const CoreClassInfo & | class_info () |
template<class T > | |
static T * | cast (CoreBaseObject *object) |
template<class T > | |
static const T * | cast (const CoreBaseObject *object) |
Abstract task to be dispatched by SysThreadPool to worker threads.
A task is simply defined by overloading execution_entry(). The id passed as argument is the unique index of the working thread. For example the if you have 50 workers you will receive a number between 0 and 49. This id is extremely useful if you want to create local thread data storage in an array.
|
protectedpure virtual |
execution entry point to overload to perform the task
id | Index of the worker thread processing the task. |