ringabout
0f54554213
allow non var deinit for locks and conds: alternative way ( #23099 )
...
alternative to https://github.com/nim-lang/Nim/pull/23092
2023-12-19 09:47:39 +01:00
ringabout
1dab8ba334
move threads out of system ( #20674 )
...
* move syslocks first
* progress
* clean up
* go on
* clean up
* clean up
* add imports syslocks
* remove documentation
* public deallocOsPages
* fixes genode
* fixes more
* fixes boehmGC
* cover more cases
* fixes cyclic deps
* fixes genode
* cleanup
* unpublic fields
* cleanup
* clean up
2022-10-29 18:11:40 +02:00
Andreas Rumpf
4857c462d5
Revert "fix #14873 properly by skipping abi field in importc type ( #17944 )" ( #17992 )
...
This reverts commit 98c29c01eb .
2021-05-15 06:50:39 +02:00
Timothee Cour
98c29c01eb
fix #14873 properly by skipping abi field in importc type ( #17944 )
...
* fix #14873 properly by skipping `abi` field in importc type
* add test
* fix test for windows
2021-05-07 19:36:41 +02:00
flywind
dc89b21257
[std/locks]close #7998(complete condition variables) ( #17711 )
...
* close #7998
* workaround genode
* Update lib/system/syslocks.nim
2021-04-19 10:51:13 +02:00
flywind
cedbc7035d
[std/locks]remove workaround for withLock ( #17772 )
...
Ref #6113 and #6049
The workaround for generics instantiation is unnecessary. It seems to be fixed by another PR I guess.
The test still works. So the changes should be harmless.
https://github.com/nim-lang/Nim/blob/devel/tests/stdlib/tlocks.nim
I also add some inline pragmas.
2021-04-19 10:33:56 +02:00
flywind
c7b4639460
ref #14873 ( #17644 )
...
* ref #14873
* comment
* Update lib/core/locks.nim
2021-04-06 16:21:58 +02:00
Timothee Cour
dfe51d10a1
addQuitProc now works with closures, and c, js(node/browser) backend; fix some bugs in testament (#14342 )
...
* make addQuitProc great again
* fix bugs in testament
* fix test
* change 2016 => 2020
* addQuitProc => addExitProc + locks
* move to std/exitprocs
2020-06-16 11:43:48 +02:00
Andy Davidoff
8018449319
simple typo in locks.nim ( #14297 )
2020-05-11 02:59:31 -04:00
Timothee Cour
2446570350
fixes #12330 ( #12331 )
2019-10-02 17:57:24 +02:00
Ray Imber
9dd297f613
Locks modules should give a compile error when threads are not enabled. ( #12231 )
...
* Locks modules should give a compile error when threads are not enabled.
* fix the compile flags to make the tests pass, or ignore files where necessary.
* Fixed when statement to account for doc builds.
2019-09-26 15:45:50 +02:00
Andreas Rumpf
b07694cd90
new gensym handling ( #11985 )
...
* new .gensym implementation
* make astspec test green again
* introduce a --useVersion switch to group compatibility switches
* fixes #10180
* fixes #11494
* fixes #11483
* object constructor fields and named parameters are also not gensym'ed
* disabled broken package
2019-08-23 16:15:02 +02:00
Araq
3f6168b337
removes deprecated T/P types
2018-11-16 13:27:56 +01:00
Yuriy Glukhov
1f13e94dd0
Disable stacktrace in locks ( #6128 )
2017-07-21 17:20:46 +02:00
andri lim
2ecdf582a8
fixes #6049 add mixin release, acquire to withLock ( #6113 )
2017-07-16 16:54:09 +02:00
Anatoly Galiulin
45bbecb021
Use `when insideRLocksModule instead of when compiles`
2016-03-31 16:47:55 +06:00
Anatoly Galiulin
ebc02f6dc0
Fix `XDeclaredButNotUsed` warning when locks or rlocks module is used
2016-03-31 16:47:55 +06:00
Dominik Picheta
34401a3639
Documentation for withLock.
2016-03-23 12:47:05 +00:00
Dominik Picheta
1cc1a7faf4
Rename locks.lock tmplt to withLock and change body to untyped.
2016-03-23 12:45:36 +00:00
Dominik Picheta
f0341979bd
Implement a lock template in locks module.
2016-03-18 19:06:34 +00:00
Araq
28de800d61
Merge branch 'more_concurrency' into devel
...
Conflicts:
doc/tut1.txt
lib/core/locks.nim
lib/pure/collections/tables.nim
lib/pure/selectors.nim
2015-06-30 12:50:24 +02:00
pdw
6ca3504dfb
lib/core - Dropped 'T' from types
2015-06-04 13:17:08 +02:00
Araq
543ec37975
get rid of deprecated effects
2015-05-28 12:51:18 +02:00
Araq
75ccdebd1e
get rid of deprecated effects
2015-05-13 12:19:08 +02:00
Federico Ceratto
657dca5c3b
Fix typos
2015-02-15 16:20:32 +00:00
Araq
08fcc87986
deprecated old locking effects
2014-12-08 08:42:18 +01:00
def
78b3f739b1
Remove runtime deadlock prevention as deadlock detection at compile-time is available
...
Conflicts:
lib/core/locks.nim
2014-11-11 00:50:29 +01:00
def
ea57f340f2
Fix compile because of case sensitivity
2014-11-08 15:54:48 +01:00
Araq
30823c1ce3
make tests green
2014-08-31 15:15:26 +02:00
Araq
d05df2173b
Nimrod renamed to Nim
2014-08-28 09:50:51 +02:00
Araq
346443d1b5
case consistency improvements
2014-01-11 21:56:05 +01:00
Araq
3c0a6a8962
'assert' hides EAssertionFailsure; stdlib makes use of 'tags'
2012-11-18 01:36:20 +01:00
Araq
4f1b89c30c
year 2012 for most copyright headers
2012-01-02 23:07:35 +01:00
Zahary Karadjov
841d6b6aa9
fixed some recently introduced compilation errors in the standard library
2011-12-13 22:52:13 +02:00
Araq
4839800c22
new actors implementation for nimrod; compiler's generics still not up for the task though
2011-08-29 01:14:26 +02:00
Araq
d560e84fcc
locks now in their own core module
2011-08-20 00:24:02 +02:00