A class representing a coroutine-based thread pool.
More...
#include <CoRoutineThreadPool.hpp>
Inherits discord_core_api::unordered_map< key_type_new, value_type_new >.
|
| co_routine_thread_pool () |
| Constructor to create a coroutine thread pool. initializes the worker threads.
|
|
void | submitTask (std::coroutine_handle<> coro) |
| Submit a coroutine task to the thread pool. More...
|
|
◆ submitTask()
void discord_core_api::discord_core_internal::co_routine_thread_pool::submitTask |
( |
std::coroutine_handle<> |
coro | ) |
|
|
inline |
◆ threadFunction()
void discord_core_api::discord_core_internal::co_routine_thread_pool::threadFunction |
( |
worker_thread * |
thread, |
|
|
std::stop_token |
tokenNew |
|
) |
| |
|
inlineprotected |
- Parameters
-
thread | A pointer to the current thread of execution. |
tokenNew | The stop token for the thread. |
Definition at line 134 of file CoRoutineThreadPool.hpp.
The documentation for this class was generated from the following file: