Commit graph

11 commits

Author SHA1 Message Date
flywind
9c5223a5f5
remove unnecessary deps (#17307)
* improve test coverage for isolation

* a bit better

* remove unnecessary deps
2021-03-09 10:35:10 +01:00
flywind
d447c0fe3f
use typeof instead type (#16962) 2021-02-08 09:46:07 +01:00
flywind
d2c6ac4750
add simple runnableExamples for atomics (#16116) 2020-11-24 19:19:03 +01:00
Bung
826e62953f
fix #12726 Cannot take the compile-time sizeof Atomic types (#15928)
* fix #12726 Cannot take the compile-time sizeof Atomic types

* fix for arch 32
2020-11-12 09:16:40 +01:00
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
Clyybber
267fed53ee
Fix #12812 2019-12-05 13:22:40 +01:00
Federico Ceratto
39290cf88c Fix spellings (#12277) [backport] 2019-09-27 07:02:54 +02:00
Araq
5abe880469 last stdlib cleanups 2019-09-21 06:43:37 +02:00
LemonBoy
048a7a6539 Fix compilation w/ Atomic[T] types (#10607) 2019-02-13 23:30:14 +01:00
Jörg Wollenschläger
ceabbeadd7 Fixes new atomics for C + vcc (#10267) 2019-01-11 12:07:46 +01:00
Jörg Wollenschläger
ab425d793a [RFC] Better atomics (#8620)
* Initial version of C++11 style atomics
* Make Atomic[T] always concrete
2019-01-10 19:18:00 +01:00