Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Jan 11, 2024
1 parent b37d49a commit 172a558
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion threading/channels.nim
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ proc channelSend(chan: ChannelRaw, data: pointer, size: int, blocking: static bo
chan.getHead() - chan.slots

copyMem(chan.buffer[writeIdx * size].addr, data, size)

atomicInc(chan.head)
if chan.getHead() == 2 * chan.slots:
chan.setHead(0)
Expand Down

0 comments on commit 172a558

Please sign in to comment.