Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Mar 16, 2021
1 parent 5c4228c commit 412a426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/std/channels.nim
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ proc `=`*[T](dest: var Channel[T], src: Channel[T]) =
proc channelSend[T](chan: Channel[T], data: sink T, size: int, nonBlocking: bool): bool {.inline.} =
## Send item to the channel (FIFO queue)
## (Insert at last)
sendMpmc(chan.d, data.unsafeAddr, size, nonBlocking)
result = sendMpmc(chan.d, data.unsafeAddr, size, nonBlocking)
wasMoved(data)

proc channelReceive[T](chan: Channel[T], data: ptr T, size: int, nonBlocking: bool): bool {.inline.} =
## Receive an item from the channel
Expand Down

0 comments on commit 412a426

Please sign in to comment.