carbon v1.8.0 (2018-09-02T09:54:37Z)
Home
Dub
Repo
Channel
carbon
channel
スレッド間通信を提供します。 たとえば、スレッド間でデータを転送する場合に使用します。
shared
struct
Channel (
T
...
) {
static
shared
(
Channel
!
T
)
opCall
();
shared
(
Sender
)
sender
();
shared
(
Receiver
)
receiver
();
struct
Sender
;
struct
Receiver
;
void
put
(U v);
shared
(
U
)*
pop
();
shared
(
AtomicDList
!
U
)
queue
();
}
Members
Functions
pop
shared
(
U
)*
pop
()
Undocumented in source. Be warned that the author may not have intended to support it.
put
void
put
(U v)
Undocumented in source. Be warned that the author may not have intended to support it.
queue
shared
(
AtomicDList
!
U
)
queue
()
return a queue managed this channel
receiver
shared
(
Receiver
)
receiver
()
Undocumented in source. Be warned that the author may not have intended to support it.
sender
shared
(
Sender
)
sender
()
Undocumented in source. Be warned that the author may not have intended to support it.
Static functions
opCall
shared
(
Channel
!
T
)
opCall
()
Undocumented in source. Be warned that the author may not have intended to support it.
Structs
Receiver
struct
Receiver
Undocumented in source.
Sender
struct
Sender
Undocumented in source.
Meta
Source
See Implementation
carbon
channel
functions
channel
nchannel
structs
Channel
NChannel
スレッド間通信を提供します。 たとえば、スレッド間でデータを転送する場合に使用します。