-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to channel-less implementation. (#11)
* Working rough cut Signed-off-by: Ed Warnicke <hagbard@gmail.com> * Move to channel-less implementation. When multiple go routines queue to send into a channel, the order of their entry to the channel is unknowable: https://groups.google.com/g/golang-nuts/c/PWt4r9b40bc/m/lC59KD5TQCwJ Therefore, we cannot rely on a channel for ordering, as if we overrun its size, order will be non-deterministic. This PR moves to using a strict ordering by atomically ordered ticket. Signed-off-by: Ed Warnicke <hagbard@gmail.com>
- Loading branch information
1 parent
009feaf
commit 2dc42a7
Showing
1 changed file
with
65 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters