Page
Library
Module
Module type
Parameter
Class
Class type
Source
Work_stealing_deque.M
SourceType of work-stealing queue
push t v
adds v
to the front of the queue q
. It should only be invoked by the domain which owns the queue q
.
pop q
removes and returns the first element in queue q
.It should only be invoked by the domain which owns the queue q
.
pop_opt q
removes and returns the first element in queue q
, or returns None
if the queue is empty.
steal q
removes and returns the last element from queue q
. It should only be invoked by domain which doesn't own the queue q
.