Skip to content

Commit

Permalink
Documenting race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivanshVij committed Sep 19, 2024
1 parent e619c63 commit 1ec9b84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/queue/lockfree.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ RETRY:
}
runtime.Gosched()
}
// TODO: detected race condition here and on line 174
newNode.data = item
atomic.StoreUint64(&newNode.position, head+1)
return nil
Expand Down

0 comments on commit 1ec9b84

Please sign in to comment.