13 #include "semaphore.hpp"
14 #include <ST_util/linear_frame_allocator_256.hpp>
26 static linear_frame_allocator_256<task> allocator;
30 void (*task_func)(
void *){};
44 this->task_func =
function;
46 this->dependency = dependency;
49 void *
operator new(std::size_t) {
50 return allocator.allocate();
53 void operator delete(
void *) {}
An object representing a task to be run by the task manager.
task(void(*function)(void *), void *arg, semaphore *dependency)