DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
discord_core_api::discord_core_internal::worker_thread Struct Reference

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.
 

The documentation for this struct was generated from the following file: