Marine systems simulation
|
if task are ordered roughly according to decreasing size, smart_index will return a 'good' core allocation order, taking hyperthread clustering into account More...
#include <AsynchronousTask.h>
Public Member Functions | |
mutex_queue (mutex_queue *sub_queue) | |
void | push (Task *t) |
threadsafe: push task to queue | |
Task * | pop () |
threadsafe: pop task from queue | |
void | KillAllTasks () |
threadsafe: remove all tasks from queue | |
bool | isEmpty () |
threadsafe: is the queue (including sub_queues) empty? | |
threadsafe FIFO-queue.
queues can optionally refer to sub-queues and will retrieve tasks from them if own queue is empty