|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
虚拟线程等待器 更多...
#include <virtual_thread.hpp>
Public 成员函数 | |
| bool | await_ready () const noexcept |
| 检查是否准备就绪 | |
| void | await_suspend (coroutine_handle<> handle) |
| 挂起协程 | |
| void | await_resume () const noexcept |
| 恢复协程 | |
Public 属性 | |
| coroutine_handle | handle_ |
| 协程句柄 | |
|
inlinenoexcept |
|
inline |
挂起协程
| handle | 协程句柄 |
将协程提交给调度器执行。
在文件 virtual_thread.hpp 第 255 行定义.
引用了 virtual_thread_scheduler::get_instance(), handle() , 以及 virtual_thread_scheduler::schedule().