AIStatefulTask ‐ Asynchronous, Stateful Task Scheduler library. Threads-like task objects evolving through user-defined states. |
A hook to the protected control functions of AIStatefulTask.
Allows to call the protected control functions of a task.
Usage:
#include <AIFriendOfStatefulTask.h>
Public Types | |
using | state_type = AIStatefulTask::state_type |
Proxy for AIStatefulTask::state_type. | |
using | condition_type = AIStatefulTask::condition_type |
Proxy for AIStatefulTask::condition_type. | |
Protected Member Functions | |
AIFriendOfStatefulTask (AIStatefulTask *task) | |
Construct a friend of task. | |
void | set_state (state_type new_state) |
Proxy for AIStatefulTask::set_state. | |
void | wait (condition_type conditions) |
Proxy for AIStatefulTask::wait. | |
void | wait_until (AIWaitConditionFunc const &wait_condition, condition_type conditions) |
Proxy for AIStatefulTask::wait_until. | |
void | wait_until (AIWaitConditionFunc const &wait_condition, condition_type conditions, state_type new_state) |
Proxy for AIStatefulTask::wait_until. | |
void | finish () |
Proxy for AIStatefulTask::finish. | |
void | yield () |
Proxy for AIStatefulTask::yield. | |
void | target (AIEngine *engine) |
Proxy for AIStatefulTask::target. | |
void | yield (AIEngine *engine) |
Proxy for AIStatefulTask::yield. | |
void | yield_frame (AIEngine *engine, unsigned int frames) |
Proxy for AIStatefulTask::yield_frame. | |
void | yield_ms (AIEngine *engine, unsigned int ms) |
Proxy for AIStatefulTask::yield_ms. | |
bool | yield_if_not (AIEngine *engine) |
Proxy for AIStatefulTask::yield_if_not. | |
Protected Attributes | |
AIStatefulTask * | m_task |
The base class of the object that this object is a member of. | |