33#include <NDEVR/Thread.h>
34#include <NDEVR/Resource.h>
38#if NDEVR_SUPPORTS_THREADING
42 Resource<bool> sv_is_running;
44 explicit ThreadQueue(
const String& name);
46 void add(
const std::function<
void()>& callback)
48 m_functions.add(callback);
52 Buffer<std::function<void()>> m_functions;
53 std::function<void(
const char*
const)> m_error_callback;