concurrency v5.0.0 (2022-10-19T08:12:29Z)
Dub
Repo
MPSCQueue
concurrency
data
queue
mpsc
Undocumented in source.
final
class
MPSCQueue (
Node
) {
import
std
.
traits
:
hasUnsharedAliasing
;
;
alias
ElementType
=
Node
*
;
this
();
this
();
shared
(
MPSCQueueProducer
!
Node
)
producer
();
bool
push
(Node* n);
bool
empty
();
Node
*
pop
();
auto
opSlice
();
}
Constructors
this
this
()
Undocumented in source.
this
this
()
Undocumented in source.
Members
Aliases
ElementType
alias
ElementType
=
Node
*
Undocumented in source.
Functions
empty
bool
empty
()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
auto
opSlice
()
Undocumented in source. Be warned that the author may not have intended to support it.
pop
Node
*
pop
()
returns node or null if none
producer
shared
(
MPSCQueueProducer
!
Node
)
producer
()
Undocumented in source. Be warned that the author may not have intended to support it.
push
bool
push
(Node* n)
returns true if first to push
Meta
Source
See Implementation
concurrency
data
queue
mpsc
classes
MPSCQueue
structs
Iterator
MPSCQueueProducer