Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
Public Member Functions | |
template<typename T > | |
SysThreadTaskGeneric (T &&task) | |
![]() | |
SysThreadTaskManager * | get_task_manager () const |
const bool & | is_auto_deleted () const |
const bool & | is_preemptible () const |
void | set_auto_delete (const bool &auto_delete) |
![]() | |
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 | |
void | execution_entry (const unsigned int &thread_id) final |
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) |
Generic task to be used with the thread task manager, allowing task code to be created at the call site (using lambdas for instance)
|
inline |
Constructor
task | Anything which is assignable to a CoreFunction. This can be a lambda or the result of a call to std::bind, etc. The callable must have the signature void (unsigned int) : when the task is executed, the thread id will be passed to the task as an argument. |
|
inlinefinalprotectedvirtual |
Execution entry point of the task. This were the task work must be implemented.
thread_id | task thread ID. |
Implements SysThreadTask.