33#include <NDEVR/Thread.h>
34#include <NDEVR/Resource.h>
38#if NDEVR_SUPPORTS_THREADING
50 void add(
const std::function<
void()>& callback)
52 m_functions.add(callback);
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Definition Toggle.h:41
The core String class for the NDEVR API.
Definition String.h:69
A thread is a single sequence stream within the software.
Definition Thread.h:67
Executes a queue of commands in a single thread.
Definition ThreadQueue.h:44
Resource< bool > sv_is_running
Definition ThreadQueue.h:46
void add(const std::function< void()> &callback)
Definition ThreadQueue.h:50
ThreadQueue(const String &name)
std::function< void(const char *const)> m_error_callback
Definition ThreadQueue.h:57
Buffer< std::function< void()> > m_functions
Definition ThreadQueue.h:56