summary refs log tree commit diff stats
path: root/lib/pure/concurrency
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fix #13093 C++ Atomics: operator= is implicitly deleted because the ↵ringabout2023-01-271-1/+1
| | | | | | | default definition would be ill-formed " (#21307) Revert "Fix #13093 C++ Atomics: operator= is implicitly deleted because the default definition would be ill-formed (#21169)" This reverts commit a7bae919adb952362cb53206140872d2b7424b47.
* Fix #13093 C++ Atomics: operator= is implicitly deleted because the default ↵Bung2023-01-271-1/+1
| | | | | | | | | | | | | definition would be ill-formed (#21169) * add test * fix #17982 Invalid C++ code generation when returning discardable var T * fix #13093 * cpp atomic good example * clearify the condition
* fixes broken importc for vcc [backport] (#20909)ringabout2022-11-241-2/+2
| | | fixes broken imports for vcc
* move `system/atomics` out of system; `std/atomics` should be preferred (#20875)ringabout2022-11-221-1/+1
| | | | | | | | | | | | | * move `system/atomics` out of system; `std/atomics` should be preferred * add deprecation message * fixes * fixes * fixes * fixes more tests
* rename `std/threads` to `std/typedthreads` (#20850)ringabout2022-11-161-1/+1
| | | | | | | | | * rename `std/threads` to `std/oldthreads` * fixes tests * rename to `typedthreads` * changelog
* fixes #13781; fixes #14901; add acyclic pragmas to FlowVar (#20804)ringabout2022-11-101-2/+2
| | | | | * add acyclic pragmas to FlowVar * add testcases
* removes channels_builtin when enabling `nimPreviewSlimSystem` (#20713)ringabout2022-10-311-1/+0
|
* put std/threads under the umbrella of nimPreviewSlimSystem (#20711)ringabout2022-10-311-1/+1
| | | | | | | | | | | * put `std/threads` under the umbrella of `nimPreviewSlimSystem` * add changelog * fixes tests * fixes tests again * fixes tests
* move threads out of system (#20674)ringabout2022-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* make more standard libraries work with `nimPreviewSlimSystem` (#20343)ringabout2022-09-272-0/+6
| | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
* remove deprecated type pragma syntax, fix bugs that required it (#20199)metagn2022-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * remove deprecated pragma syntax from 0.20.0 closes #4651, closes #16653 with a cheap fix for now due to how early `tfFinal` is set * remove type pragma between name and generics * undo removal, try removing bind expression (0.8.14) * fix test, unremove bind expr * remove again * Update changelog.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * dependencies @ HEAD & weave test dependencies * try fix package ci Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Resolve cross file resolution errors in atomics (#19422) [backport:1.6]James2022-01-201-10/+7
| | | | | * Resolve call undeclared routine testAndSet * Fix undeclared field atomicType
* add std/private/win_getsysteminfo; refactor the usage of `GetSystemInfo` ↵flywind2022-01-041-18/+6
| | | | | | | | | | | (#19310) * add std/private/win_getsysteminfo * import at the top level * wrappers follow nep1 too * follow review comment
* add comments to spawn and pinnedSpawn (#19230)flywind2021-12-091-2/+4
| | | `spawn` uses `nimSpawn3` internally and `pinnedSpawn` uses `nimSpawn4` internally. I comment it in order to help contributors get the gist of its functionality.
* fix #18844 (#18851)flywind2021-09-201-4/+4
|
* improve cache line size (#17885)flywind2021-04-291-6/+3
| | | | | | | | | | | | | * improve cache line size - 64bit system tend to use cache line of 64 bytes - add align https://trishagee.com/2011/07/22/dissecting_the_disruptor_why_its_so_fast_part_two__magic_cache_line_padding Though I'm not sure, what do you think? @timotheecour * Update lib/pure/concurrency/threadpool.nim
* remove redundant void return in stdlib (#17464)Timothee Cour2021-03-231-2/+2
|
* rename channels to channels_builtin (#17330)flywind2021-03-121-1/+1
| | | | | | | * improve test coverage for isolation * a bit better * rename channels to channels_builtin
* remove unnecessary deps (#17307)flywind2021-03-091-2/+0
| | | | | | | * improve test coverage for isolation * a bit better * remove unnecessary deps
* fix #17078 csources generation (#17079)Timothee Cour2021-02-181-1/+1
| | | | | * fix #17078 csources generation * fixup
* add -d:nimStrictMode in CI to keep code from regressing; fixes ↵Timothee Cour2021-02-171-1/+1
| | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
* use typeof instead type (#16962)flywind2021-02-081-1/+1
|
* Improve documentation for threadpool (#16821)konsumlamm2021-01-271-40/+41
|
* Minor docs/format changes (cpuinfo, volatile) (#16602)konsumlamm2021-01-061-10/+9
|
* styleCheck: Fix some inconsistent identifiers (#16177)ee72020-12-211-12/+12
|
* Fix broken links in docs (#16336)Elliot Waite2020-12-141-1/+1
| | | | | * Fix broken links in docs * Fix rand HSlice links
* add simple runnableExamples for atomics (#16116)flywind2020-11-241-0/+40
|
* fix #12726 Cannot take the compile-time sizeof Atomic types (#15928)Bung2020-11-121-7/+8
| | | | | * fix #12726 Cannot take the compile-time sizeof Atomic types * fix for arch 32
* Add test coverage for atomics (#15193)Elijah Shaw-Rutschman2020-08-181-7/+7
| | | | | | | | | | | | | | | * 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>
* threadpool.nim: minor code style changesAraq2020-07-181-5/+5
|
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-171-1/+1
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* Step2: fixes #13781, fixes #13805 (#13897)cooldome2020-04-161-28/+21
| | | | | | | | | * Fix sym owner in wrapper proc * threadpool changes * revert lowerings * add newFastMoveStmt * try fixing test by switching to cpp Co-authored-by: cooldome <ariabushenko@bk.ru>
* Documentation, add more examples (#13825)Juan Carlos2020-04-011-3/+5
|
* Add Documentation (#13811)Juan Carlos2020-03-311-0/+3
| | | | * Add more Docs and runnableExamples
* threadpool.nim: allow control over MaxThreadPoolSize and ↵Araq2020-03-201-3/+3
| | | | MaxDistinguishedThread; refs #10584
* csize => csize_t for sysctlTimothee Cour2020-01-281-3/+2
|
* Fix #12812Clyybber2019-12-051-1/+1
|
* remove unused importsnarimiran2019-11-061-4/+1
|
* Fix many broken linksJjp1372019-10-221-1/+1
| | | | | | Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol.
* Revert "Fixes #12187 (#12321)" (#12447)Andreas Rumpf2019-10-181-1/+1
| | | This reverts commit 00c31e87660d9db813871f5aa23661bf6b9bbdcb.
* Fixes #12187 (#12321)Clyybber2019-10-081-1/+1
| | | | | | * Fixes #12187 * Point to fork of compactdict Since the original repo is now archived / read-only
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-272-2/+2
|
* threadpool: fix link in docs [ci skip] (#12258) [backport]Jjp1372019-09-251-1/+1
| | | [backport]
* last stdlib cleanupsAraq2019-09-213-12/+17
|
* fixes #1188Araq2019-08-161-2/+8
|
* [refactoring] remove unused imports in the compiler and in some stdlib modulesAraq2019-07-181-3/+1
|
* Fix typo (#11573)WhiteDuke2019-06-251-1/+1
|
* fixes #11275 (#11276)Ștefan Talpalaru2019-05-201-3/+20
|
* fixes #11250 (#11251)Ștefan Talpalaru2019-05-151-7/+5
|
* improved documentation for several modules (#10752)Miran2019-03-011-48/+69
| | | | | | | | | | | | More detailed documentation for: * md5 * hashes Mostly cosmetic improvements for: * threadpool * typetraits * channels * threads