13 #include "../src/main/task.hpp"
14 #include "../src/main/semaphore.hpp"
17 #include <ST_util/atomic_queue/concurrentqueue.h>
29 uint8_t thread_num = 0;
30 std::vector<std::thread> task_threads{};
31 std::atomic_bool run_threads{
true};
33 moodycamel::ConcurrentQueue<ST::task *> global_task_queue;
39 static void start_thread(
int (*thread_func)(
void *),
void *data);
An object representing a task to be run by the task manager.
The Task Manager handles all things multi-threaded in the engine.
void start_task_lockfree(ST::task *arg)
void wait_for_task(task_id id)
void work_wait_for_task(task_id id)
task_id start_task(ST::task *arg)