9 Commits

Author SHA1 Message Date
Bill Fumerola
70bd1261d3 Use stress tests for benchmarks 2017-07-19 18:46:50 -04:00
Prashant Varanasi
3f020e6d5d Add Bool.CAS for compare-and-swap semantics (#23) 2017-05-09 12:57:10 -07:00
Anton Tyurin
3b8db5e93c Implement Add/Sub for Float64 (#17)
Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2016-12-15 11:56:52 -08:00
Bill Fumerola
74ca5ec650 Add stress test for Float64 2016-12-14 13:12:48 -08:00
Prashant Varanasi
9058d5b913 Refactor stress tests and wait for the results
Previously, we were not waiting for the spawned goroutines to end.
Refactor the logic to use a common runStress that runs some function
from multiple goroutines.
2016-12-13 11:10:34 -08:00
Prashant Varanasi
fecc23564a Add String as a type-safe wrapper for atomic.Value 2016-07-17 12:43:23 -07:00
Akshay Shah
7afff28c37 Add an atomic Boolean type (#4)
* Add an atomic Boolean type

Fixes #2.

* Feedback from CR

- Rename Swap to Toggle
- Add a more Swap-like Swap

* Add boolToInt helper
2016-05-30 11:10:24 -07:00
Akshay Shah
2051a605b9 Add a Sub method to atomics (#5)
* Add a Sub method to atomics

Fixes #3.

* Invert integer sign without multiplying
2016-05-28 22:54:33 -07:00
Prashant Varanasi
928a9d776b Import atomic package
The code is the same as github.com/uber/tchannel-go/atomic
2016-05-25 11:04:20 -07:00