puzpuzpuz / xsync

Concurrent data structures for Go
Apache License 2.0
1.13k stars 40 forks source link

add counter.AddAndLoad #115

Closed ryanfkeepers closed 1 year ago

ryanfkeepers commented 1 year ago

Introduces a new method to counter: AddAndLoad(delta) int64. AddAndLoad fills a support gap where end users need to handle synchronicity themselves by locking over an add,value pair of operations.