about summary refs log tree commit diff
path: root/users/wpcarro/go/atomic-counters.go
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2024-10-19T11·17+0000
committeredef <edef@edef.eu>2024-10-19T13·49+0000
commit549c51f2004325e30c076f2f7c3e49e473a58d20 (patch)
tree8321649174fe1c13de60949a379aaba552352804 /users/wpcarro/go/atomic-counters.go
parent25671c284ff8cecd1dd7e3a2a674e1ae92b3211d (diff)
refactor(users/edef/weave): use swap rather than CAS r/8842
We only care about ordering on the same variable, and we rely on the
release barrier provided by rayon's thread joining.

The comparison failing is always an error path, and we're indifferent
about which thread it fails on.

Change-Id: I592a7eaae5b6935cf424c6576a49786f39909fb6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12666
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'users/wpcarro/go/atomic-counters.go')
0 files changed, 0 insertions, 0 deletions