Non-instantiable container for task-scheduling types and the process() entry points.
更多...
#include <schedule.h>
|
| struct | Config |
| | Scheduling parameters captured at the call to exec_task(). 更多...
|
| |
| class | RetStatus |
| | RAII handle returned by exec_task() when the wrapped callback returns bool. 更多...
|
| |
| class | Status |
| | RAII handle returned by exec_task() when the wrapped callback returns void. 更多...
|
| |
Non-instantiable container for task-scheduling types and the process() entry points.
Provides the Config envelope, the Status / RetStatus handles, and the process / process_with_ret static functions used by MessageLoop::exec_task().
◆ Callback
Callback signature for void tasks and lifecycle hooks.
◆ CatchCallback
Callback signature for exception handlers attached via on_catch().
◆ RetCallback
Callback signature for tasks that return a boolean indicating success.
◆ Schedule() [1/3]
| vlink::Schedule::Schedule |
( |
| ) |
|
|
delete |
◆ Schedule() [2/3]
| vlink::Schedule::Schedule |
( |
const Schedule & |
| ) |
|
|
delete |
◆ Schedule() [3/3]
| vlink::Schedule::Schedule |
( |
Schedule && |
| ) |
|
|
delete |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ process()
Wraps a void callback in a Config envelope and produces the task wrapper for the dispatcher.
Called internally by MessageLoop::exec_task(). Allocates the Status state and fills wrapper_callback with the closure that the dispatcher will eventually run.
- 参数
-
| config | Scheduling configuration. |
| callback | Void callable to execute. |
| wrapper_callback | Out parameter receiving the dispatcher-ready wrapper. |
- 返回
- Fresh
Status handle for fluent chaining.
◆ process_with_ret()
Wraps a bool-returning callback in a Config envelope and produces the task wrapper for the dispatcher.
Called internally by MessageLoop::exec_task(). Allocates the RetStatus state and fills wrapper_callback with the closure that the dispatcher will eventually run.
- 参数
-
| config | Scheduling configuration. |
| callback | Bool-returning callable to execute. |
| wrapper_callback | Out parameter receiving the dispatcher-ready wrapper. |
- 返回
- Fresh
RetStatus handle for fluent chaining.
该结构体的文档由以下文件生成: