|
VoltMod
C++23 framework for CS2 server plugins
|
Callbacks worker threads hand to the game thread: Push from any thread, RunAll on the game thread. More...
#include <GameThreadQueue.hpp>
Public Member Functions | |
| void | Push (std::move_only_function< void()> completion) |
| void | RunAll () |
| void | Clear () |
Callbacks worker threads hand to the game thread: Push from any thread, RunAll on the game thread.
Definition at line 14 of file GameThreadQueue.hpp.
|
inline |
Drops what is waiting, unrun.
Definition at line 45 of file GameThreadQueue.hpp.
References VoltMod::ReadFile().
Referenced by VoltMod::Database::Disconnect().
Definition at line 17 of file GameThreadQueue.hpp.
References VoltMod::ReadFile().
Referenced by VoltMod::HttpClient::Requests::Complete().
|
inline |
Runs what was pushed so far; anything pushed meanwhile waits for the next call.
Definition at line 25 of file GameThreadQueue.hpp.
References VoltMod::ReadFile().
Referenced by VoltMod::Database::DispatchCompletions().