4#ifndef MALENA_NETWORKMANAGER_H
5#define MALENA_NETWORKMANAGER_H
113 static void enqueue(std::function<
void()> work,
114 std::function<
void()> onComplete);
125 static void queueCallback(std::function<
void()> callback);
NetworkManager & operator=(const NetworkManager &)=delete
static void shutdown()
Stop all worker threads and discard pending work.
static void flush()
Deliver all pending callbacks on the calling (main) thread.
static void autoFlush()
Register flush() with AppManager's pre-render hook.
static void initialize(std::size_t threadCount=4)
Start the background thread pool.
NetworkManager(const NetworkManager &)=delete