DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
A struct representing a worker thread for coroutine-based tasks. More...
#include <CoRoutineThreadPool.hpp>
Public Data Members | |
std::atomic_bool | areWeCurrentlyWorking {} |
Atomic flag indicating if the thread is working. | |
unbounded_message_block< std::coroutine_handle<> > | tasks {} |
Queue of coroutine tasks. | |
std::jthread | thread {} |
Joinable thread. | |