lock-free ~master (2022-02-21T19:55:07.7372929)
Dub
Repo
RWQueue
lock_free
rwqueue
A lock-free single-reader, single-writer FIFO queue.
shared
struct
RWQueue (
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
lock_free
rwqueue
structs
RWQueue
A lock-free single-reader, single-writer FIFO queue.