SCMPQueue.pop

Pop a value from the queue

Pop one value from the queue, if one is available. Only one thread can simulteneously safely call this function.

struct SCMPQueue(T, size_t size)
nothrow @trusted @nogc
bool
pop
(
out T result
)

Parameters

result T

out parameter where to store the result.

Return Value

Type: bool

true if a value was, indeed, popped from the queue. False if the queue was empty.

Meta