Commit Graph

76 Commits

Author SHA1 Message Date
Tomohiro
495585bc1e manual: Fix links to Parallel & Spawn (#9342)
(cherry picked from commit eb4272ba1c)
2018-11-01 17:36:02 +01:00
Araq
4f8cf945fb docs: remove most stale links; refs #9109 2018-09-29 11:23:29 +02:00
Leorize
bd3463f776 cpuinfo: fix compilation for 32bit Haiku 2018-09-25 15:47:23 +07:00
Andreas Rumpf
e4c759fbff Merge branch 'devel' into araq-misc 2018-08-16 01:22:21 +02:00
alaviss
7ef268274f Haiku support for Nim (#8542)
* posix_other: Haiku now has spawn.h

This is added per https://dev.haiku-os.org/ticket/13446

* posix_other: Add Haiku specific Dirent members

* cpuinfo: Add an implementation for Haiku

* distros: Add basic Haiku support

* encodings: update Haiku support

* fenv, math: Haiku now provides libm

* times: Add Haiku struct members

* ansi_c, osalloc: Add Haiku constants

* threads: Add Haiku support

* testament: Haiku uses LIBRARY_PATH

* nim.cfg: Update Haiku support

libnetwork should only be linked if network functions are used

* threads: Haiku does not support -pthread switch

* tworkingdir: Haiku's env is in /bin

* posix_other: add SIGKILLTHR for Haiku

* sockets: link with libnetwork on Haiku

* coro: correct ucontext.h location

http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html

* coro: ucontext backend is not available on Haiku

Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX

* coro: fix setjmp backend

The compiler does not allow statements after a noreturn function

* nativesockets: Haiku doesn't support AI_V4MAPPED

* system: hostOS can contains "haiku"

* os: add support for Haiku's packagefs

packagefs is read-only, but there are writable holes to the underlying
file system as well

* os: update constant for Haiku
2018-08-14 09:35:07 +02:00
Araq
83c89197f3 renames threadpool.await to blockUntil; refs #7853 2018-08-14 01:28:04 +02:00
Araq
265003df1a deprecated regionized pointers 2018-08-10 01:20:14 +02:00
Emery Hemingway
22f714585b Native access to Genode environment
Add a 'GenodeEnv' type and a 'componentConstructHook' to the system
module. The 'componentConstructHook' allows for detection of POSIX style
programs that exit implicitly or native Genode components that
initialize to serve RPC requests and OS signals.

This hook takes a 'GenodeEnv' argument so that the environment interface
is passed cleanly to application code after globals are initialized.
This is an typed pointer to a C++ object, procedures for accessing the
environment will be available from a Nimble library and not included in
the standard library.

The standard library has an internal pointer to the environment object
but this is not for external use, the undocumented global environment
pointer has been removed.
2018-06-07 07:21:20 +02:00
Ganesh Viswanathan
6ca8478548 Minor fixes to enable tcc 2018-05-14 11:40:59 +02:00
Andreas Rumpf
0dc4d6dcc2 fixes #7638; awaitAny blocks if the flow vars all have been complete already 2018-04-19 08:54:23 +02:00
Andreas Rumpf
17cb2f2d4c threadpool: minor documentation improvement 2018-04-19 08:54:23 +02:00
Yuriy Glukhov
ecbbefcc83 Fallback to doNothing if /proc/loadavg cant be opened (#7123) 2018-01-22 13:52:22 +01:00
Andreas Rumpf
aa526da706 make tests green again 2017-10-29 23:09:46 +01:00
Andreas Rumpf
6a3288a60e more replacements for the deprecated '<' 2017-10-29 08:55:30 +01:00
Araq
928bdb45f0 fixes cpuinfo regression 2017-10-26 00:55:23 +02:00
Dmitry Atamanov
aa1b575133 [Windows] Use GetSystemInfo for obtaining processor count (#6082) 2017-10-25 16:19:40 +02:00
Andreas Rumpf
8a2f481f99 make threadpool care about minPoolSize 2017-10-12 12:45:18 +02:00
Arne Döring
000b8afd26 Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
Yuriy Glukhov
30e2af969c Revert "GC_fullCollect on sync threadpool (#6107)" (#6119)
This reverts commit bdb653c415.
2017-07-17 13:45:54 +02:00
Yuriy Glukhov
bdb653c415 GC_fullCollect on sync threadpool (#6107) 2017-07-17 08:09:21 +02:00
Yuriy Glukhov
8bdcade1a0 Fixes #6090 (#6092) 2017-07-14 08:15:37 +02:00
Parashurama
2c5053caef fix countProcessors error return value. (#5942) 2017-06-05 13:21:57 +02:00
Emery Hemingway
7e351fc7fa support for the Genode OS framework (#5560) 2017-03-31 23:13:06 +02:00
Tomas Vojtisek
27a291c09e Update threadpool.nim (#5624) 2017-03-29 08:36:10 +02:00
vega
52a7ed5d19 Fix overflow when casting int64 to int in cpuload.nim 2016-12-16 12:12:36 +07:00
Dmitry Polienko
885543e43e Add a lock to prevent race condition 2016-08-24 22:01:37 +07:00
Dmitry Polienko
2edd3786ce Add a workaround for threadpool deadlocks on recursion 2016-08-11 03:11:57 -07:00
Andreas Rumpf
95bb19a579 moved random procs from math to its own module (breaking change) 2016-05-30 16:24:52 +02:00
Yuriy Glukhov
9cdb4ee1cb Fixed semaphore on iOS. 2016-03-05 14:20:09 +02:00
def
c50b5b62ef Fix a few deprecation warnings 2016-01-25 19:10:37 +01:00
Dominik Picheta
dda41afe9e Implement isReady procedure in threadpool module. 2015-10-12 23:05:41 +01:00
Araq
d7996a9ede attempt to support recursions for spawn 2015-09-06 02:40:26 +02:00
Adam Strzelecki
43bddf62dd lib: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:56 +02:00
Araq
646af76c87 implemented nimPinToCpu threadpool feature 2015-08-24 18:01:41 +02: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
Spencer Stirling
891d953a4c disabled threadpool assertion only for vcc 2015-06-10 07:23:07 -06:00
Spencer Stirling
d152ccc1e2 fixed threadpool and atomics to work with Visual Studio 32 and 64 bit 2015-06-09 11:59:26 -06:00
Araq
adfdb4623d use new type names 2015-06-06 11:59:35 +02:00
pdw
192ba3bbc0 lib/pure/a-c - Dropped 'T' from types 2015-06-04 13:17:11 +02:00
Araq
79c92603f5 FlowVar's ^ for refs is safe and convenient to use 2015-06-02 16:32:53 +02:00
Araq
3312d49a48 proper waiting for the pinned thread 2015-06-02 16:21:55 +02:00
Araq
94f54700c4 first implementation of pinnedSpawn 2015-05-28 12:42:04 +02:00
Michael Werner
c384f05e49 fixed typo in threadpool.nim 2015-05-08 03:31:58 +05:00
Oleh Prypin
32109a7867 Don't run non-test code when defined(testing) 2015-04-21 14:37:29 +03:00
Araq
7023fdddff todo update 2015-03-27 01:30:07 +01:00
Guillaume Gelin
3119fe087d Happy new year! 2015-01-06 15:26:33 +01:00
Araq
24e66e04fa cleaned up os.nim; docgen improvements 2014-12-21 14:28:46 +01:00
Araq
795a7762cc minor improvement to the barrier implementation 2014-12-09 01:03:56 +01:00
def
f52fd8785f Fix some deprecation warnings caused by renames 2014-11-13 21:34:46 +01:00
Araq
81353b2dbc renamed CondVar to Semaphore 2014-11-10 07:57:19 +01:00