parent
bccaa36aba
commit
98225ca207
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ proc send*[TMsg](c: var Channel[TMsg], msg: TMsg) {.inline.} =
|
||||||
proc trySend*[TMsg](c: var Channel[TMsg], msg: TMsg): bool {.inline.} =
|
proc trySend*[TMsg](c: var Channel[TMsg], msg: TMsg): bool {.inline.} =
|
||||||
## Tries to send a message to a thread. `msg` is deeply copied. Doesn't block.
|
## Tries to send a message to a thread. `msg` is deeply copied. Doesn't block.
|
||||||
## Returns `false` if the message was not sent because number of pending items
|
## Returns `false` if the message was not sent because number of pending items
|
||||||
## in the cannel exceeded `maxItems`.
|
## in the channel exceeded `maxItems`.
|
||||||
sendImpl(cast[PRawChannel](addr c), cast[PNimType](getTypeInfo(msg)), unsafeAddr(msg), true)
|
sendImpl(cast[PRawChannel](addr c), cast[PNimType](getTypeInfo(msg)), unsafeAddr(msg), true)
|
||||||
|
|
||||||
proc llRecv(q: PRawChannel, res: pointer, typ: PNimType) =
|
proc llRecv(q: PRawChannel, res: pointer, typ: PNimType) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue