Marine systems simulation
CoRiBoDynamics::CoreBoundThreadPool::mutex_queue Class Reference

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
 
Taskpop ()
 threadsafe: pop task from queue
 
void KillAllTasks ()
 threadsafe: remove all tasks from queue
 
bool isEmpty ()
 threadsafe: is the queue (including sub_queues) empty?
 

Detailed Description

threadsafe FIFO-queue.

queues can optionally refer to sub-queues and will retrieve tasks from them if own queue is empty


The documentation for this class was generated from the following file: