diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-04-04 13:38:41 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-04-04 13:38:41 +0200 |
commit | bfaa32968049aed6925e53def094b8135fed328a (patch) | |
tree | 6bf125c29121eb5c010ba0e93c95ee7988e790eb /lib/system/threads.nim | |
parent | 0b79a2b02e2b6fac5245aba5eceb25234b921fc5 (diff) | |
parent | 87732f797c634b9c3ee1fbb77c0ed0c416d16db6 (diff) | |
download | Nim-bfaa32968049aed6925e53def094b8135fed328a.tar.gz |
Merge branch 'devel' into araq
Diffstat (limited to 'lib/system/threads.nim')
-rw-r--r-- | lib/system/threads.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 4855a2b93..7743fffff 100644 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -593,6 +593,8 @@ elif defined(genode): proc createThread*[TArg](t: var Thread[TArg], tp: proc (arg: TArg) {.thread, nimcall.}, param: TArg) = + t.core = cast[PGcThread](allocShared0(sizeof(GcThread))) + when TArg isnot void: t.data = param t.dataFn = tp when hasSharedHeap: t.stackSize = ThreadStackSize |