Commit Graph

27 Commits

Author SHA1 Message Date
Bill Fumerola
a85b15eff9 Use our own Value for String 2017-05-09 14:47:25 -07:00
Prashant Varanasi
3f020e6d5d Add Bool.CAS for compare-and-swap semantics (#23) 2017-05-09 12:57:10 -07:00
Oleg Kovalov
1d7f075bbe Update Travis to run Go 1.7 and 1.8 versions (#22) 2017-04-30 10:40:09 -07:00
bill fumerola
4e336646b2 Shadow atomic.Value from sync/atomic (#19) v1.2.0 2017-04-10 19:30:53 -07:00
bill fumerola
1dcf4eb483 Update lint-worthy version list (#20) 2017-04-10 17:14:58 -07:00
Anton Tyurin
3b8db5e93c Implement Add/Sub for Float64 (#17)
Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
v1.1.0
2016-12-15 11:56:52 -08:00
Bill Fumerola
74ca5ec650 Add stress test for Float64 2016-12-14 13:12:48 -08:00
bill fumerola
14746df0c2 Merge pull request #16 from uber-go/refactor_stress
Refactor stress tests and wait for the results
2016-12-13 11:16:23 -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
9e99152552 Fix Go tip errors with self-import (#14) 2016-10-27 09:36:08 -07:00
Prashant Varanasi
0ab99594f7 Use go.uber.org import path (#13) 2016-10-27 00:33:41 -07:00
Kunal Thakar
6c2817a9ef Atomic wrapper around float64 (#12) 2016-10-19 17:45:26 -07:00
Prashant Varanasi
0c9e689d64 Merge pull request #10 from uber-go/unexport
Use unexported field name instead of embedding
v1.0.0
2016-07-18 13:38:59 -07:00
Prashant Varanasi
e59e67d981 Use unexported field name instead of embedding
Unexported field name means the methods on different types look
more similar (e.g., &i.v instead of &i.int32 or &i.uint32).

For String, this is important since we don't want users to be
able to access the underlying atomic.Value
2016-07-18 12:50:08 -07:00
Prashant Varanasi
16e575a521 Merge pull request #9 from uber-go/string_bug
Fix NewString disregarding the passed in string
2016-07-18 11:25:57 -07:00
Prashant Varanasi
d938bba906 Fix NewString disregarding the passed in string 2016-07-18 11:07:34 -07:00
Prashant Varanasi
3725100ae4 Merge pull request #8 from uber-go/string
Add String as a type-safe wrapper for atomic.Value
2016-07-17 23:05:33 -07:00
Prashant Varanasi
fecc23564a Add String as a type-safe wrapper for atomic.Value 2016-07-17 12:43:23 -07:00
Prashant Varanasi
e682c1008a Fix glide.yaml and run glide up 2016-05-31 17:23:56 -07:00
Prashant Varanasi
b4ee65f3b3 Use glide nv instead of novendor 2016-05-31 17:14:21 -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
e1b75a466a Lint on Travis (#7) 2016-05-29 20:54:38 -07:00
Akshay Shah
68f9c8c0d0 Add docs and linters before release (#6)
* Add a lint target to Makefile

* Add a README

* Add a simple example

* Add a PR template

* Show off usable zero values
2016-05-29 20:50:32 -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
be53a1df0f Merge pull request #1 from uber-go/import
Import atomic package
2016-05-25 11:05:37 -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
Prashant Varanasi
d53d39b5b9 Add Uber license 2016-05-23 17:16:56 -07:00