Files
Nim/lib
Elijah Shaw-Rutschman 8a004e2fc0 Add test coverage for atomics (#15193)
* Add test coverage for atomics

Signed-off-by: Elijah Shaw-Rutschman <elijahr@gmail.com>

* Fix compareExchange bugs for non-trivial objects

Bugs fixed:

1. compareExchange would not set the desired value in the success case.
2. compareExchange would not set var expected to the found value in the failure case.
3. withLock would spin forever running the unit tests. try..body..finally prevents this. Not sure why this makes a difference, since an exception wasn’t being raised, but clearing the guard in a finally block seems correct anyways.

Signed-off-by: Elijah Shaw-Rutschman <elijahr@gmail.com>
2020-08-18 18:02:10 +02:00
..
2017-02-20 17:24:19 +02:00
2019-07-14 16:08:15 +02:00
2020-08-18 12:45:22 +02:00
2020-07-24 21:15:20 +02:00
2020-07-06 13:41:56 +02:00
2013-03-16 23:53:07 +01:00
2014-08-28 09:59:26 +02:00
2020-07-27 13:07:09 +02:00