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
..
arch/x86 Coroutine rework. 2017-02-20 17:24:19 +02:00
core enable,document,test getImplTransformed, very useful for understanding how nim transforms code (#14924) 2020-07-18 10:49:36 +02:00
deprecated/pure Error -> Defect for defects (#13908) 2020-04-28 19:56:01 +02:00
experimental fix several typos in documentation and comments (#12553) 2019-10-30 09:08:45 +01:00
genode minor update for the genode target 2019-07-14 16:08:15 +02:00
genode_cpp Native access to Genode environment 2018-06-07 07:21:20 +02:00
impure better strict funcs, WIP (#15199) 2020-08-18 12:45:22 +02:00
js jsre: try to fix nightlies (#15057) 2020-07-24 21:15:20 +02:00
nintendoswitch Rewrite the memory management code for Nintendo Switch (#8169) 2018-07-05 16:33:15 +02:00
packages/docutils fixes #14830 2020-07-06 13:41:56 +02:00
posix Add iterator inotify_events which is *almost always* needed logic for (#15152) 2020-08-08 07:26:20 +02:00
pure Add test coverage for atomics (#15193) 2020-08-18 18:02:10 +02:00
std std/with support field assign (#14484) 2020-08-15 01:33:21 +02:00
system gc_regions: cleanup & fixes for deallocation (#11920) 2020-08-17 20:20:48 +02:00
windows net: allow close() to ignore SSL failures due to disconnections (#15120) 2020-08-01 21:27:55 +02:00
wrappers add openssl missing procs (#15180) 2020-08-17 10:54:34 +02:00
cycle.h
nimbase.h Add thiscall calling convention, mostly for hooking purpose (#14466) 2020-05-27 16:24:47 +02:00
nimhcr.nim testament: generic N-fold batching: windows CI 37mn=>16m (#14823) 2020-06-27 16:51:17 +02:00
nimhcr.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
nimrtl.nim testament: generic N-fold batching: windows CI 37mn=>16m (#14823) 2020-06-27 16:51:17 +02:00
nimrtl.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
prelude.nim
stdlib.nimble attempt to make the build green again 2017-01-07 02:55:15 +01:00
system.nim more renamings 2020-07-27 13:07:09 +02:00
system_overview.rst docs: Make ..<, .. ^ more discoverable (#14835) 2020-06-27 23:42:58 +02:00