Commit Graph

17 Commits

Author SHA1 Message Date
Lucas Rouckhout 037d8fa3d5 Add my name to thanks section ;) Ad removed a letter 'l' from Unmarshal(l) 2021-05-08 17:54:15 +02:00
Lucas Rouckhout b2658a5604 Use table-driven test to merge the true and false case of Unmarshalling 2021-05-08 17:49:35 +02:00
Lucas Rouckhout 9a297a52be Implement the Unmarshaler and Marshaler interfaces.
This allows an AtomicBool to be Unmarshalled from the JSON
representation of a normal boolean and respectively marshall
it into the JSON representation of normal booleans.

This makes it easier to use AtomicBool in structs. For they can
now be read from JSON files and serialized back into them.
2021-04-28 16:48:48 +02:00
Tevin Zhang f861b8e1c3
Remove useless parts in benchmarks 2020-07-16 15:02:52 +08:00
Tevin Zhang 78e36140ca
Separate test function into smaller cases 2020-07-16 15:01:49 +08:00
Tevin Zhang 8ae5c93531
Add IsNotSet() 2020-07-16 14:46:58 +08:00
Tevin Zhang 53396ec6fe
Change return type of Toggle to simple bool 2020-07-07 15:33:59 +08:00
Tevin Zhang b830aebdb7
Enable parallel testing 2020-06-30 10:10:38 +08:00
Tevin Zhang 9c19061983
Add tests for Toggle() 2020-06-30 10:09:54 +08:00
barryz 9e538c6d38 implments Toggle method more explicit and simple. 2019-07-23 23:43:34 +08:00
barryz 42463bd9a0 atomically negates boolean value with Toggle method 2019-07-22 13:04:35 +08:00
barryz ae078ebcf7 Add Flip method to flip boolean value 2018-09-07 22:17:26 +08:00
Tevin Zhang df1d8a392d Add CAS methods 2016-06-02 11:49:33 +08:00
Tevin Zhang bb33e2abb1 Add NewBool 2016-05-25 15:06:49 +08:00
Tevin Zhang 6e6b80cf11 Add race test 2016-05-25 14:57:10 +08:00
Tevin Zhang ba4fdb7068 Add example code 2016-05-25 14:16:55 +08:00
Tevin Zhang b6b9ab38df First commit 2016-05-25 13:56:52 +08:00