Callisto Engine
async_worker.h
1#pragma once
2#include <thread>
3#include "blocking_queue.h"
4#include "type_aliases.h"
5
6namespace cl::threading {
8 private:
9 bool running {false};
10 std::thread worker_thread;
12 void process();
13
14 public:
16
17 void start();
18 void stop();
19 void schedule(std::unique_ptr<async_task> task);
20 };
21}
Definition: async_worker.h:7
A thread-safe blocking concurrent queue.
Definition: blocking_queue.h:20