Skip to content

Commit

Permalink
Merge branch 'bugfix/#55-refactor-to-atomics' of github.com:PhilippMD…
Browse files Browse the repository at this point in the history
…oerner/threading into bugfix/#55-refactor-to-atomics
  • Loading branch information
PhilippMDoerner committed Jan 12, 2024
2 parents 983d13a + 172a558 commit 1bf7eb3
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 @@ -211,7 +211,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 1bf7eb3

Please sign in to comment.