Skip to content

Commit

Permalink
Merge #340
Browse files Browse the repository at this point in the history
340: fix comment r=stjepang a=matklad

This `+ 1` is what distinguishes already fully written slot from a free or partially written slot

Co-authored-by: Aleksey Kladov <[email protected]>
  • Loading branch information
bors[bot] and matklad committed Mar 10, 2019
2 parents 1f8ccb1 + 1dda6ca commit 73081c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crossbeam-queue/src/array_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use err::{PopError, PushError};
struct Slot<T> {
/// The current stamp.
///
/// If the stamp equals the tail, this node will be next written to. If it equals the head,
/// If the stamp equals the tail, this node will be next written to. If it equals head + 1,
/// this node will be next read from.
stamp: AtomicUsize,

Expand Down

0 comments on commit 73081c0

Please sign in to comment.