voxelman v0.6.1 (2016-01-09T15:39:38Z)
Dub
Repo
ProducerConsumerQueue
voxelman
utils
lockfreequeue
A lock-free single-reader, single-writer FIFO queue.
shared
struct
ProducerConsumerQueue (
T
size_t
capacity
=
roundPow2
!(
PAGE_SIZE
/
T
.
sizeof
)
) {
size_t
length
[@property getter];
bool
empty
[@property getter];
bool
full
[@property getter];
void
push
(shared(T) t);
shared
(
T
)
pop
();
}
Members
Functions
pop
shared
(
T
)
pop
()
Undocumented in source.
push
void
push
(shared(T) t)
Undocumented in source.
Properties
empty
bool
empty
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
full
bool
full
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t
length
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
voxelman
utils
lockfreequeue
structs
ProducerConsumerQueue
A lock-free single-reader, single-writer FIFO queue.