JobQueue

First in first out queue with atomic lock

Members

Aliases

LockType
alias LockType = int
Undocumented in source.

Functions

add
void add(JobData* t)

Add job to queue

addRange
void addRange(Range arr)

Add range of jobs to queue

empty
bool empty()

Check if empty

emptyRaw
bool emptyRaw()

Check if empty without locking, doesn't give guarantee that list is truly empty

pop
JobData* pop()

Pop job from queue

Variables

first
JobData* first;

Fist element in list of Jobs

lock
LockType lock;

Lock for accesing list of Jobs

Meta