parent
bb949a75db
commit
803406d07c
3 changed files with 5 additions and 5 deletions
|
|
@ -309,7 +309,7 @@ else:
|
|||
when TArg isnot void: t.data = param
|
||||
t.dataFn = tp
|
||||
when hasSharedHeap: t.core.stackSize = ThreadStackSize
|
||||
var a {.noinit.}: PthreadAttr
|
||||
var a {.noinit.}: Pthread_attr
|
||||
pthread_attr_init(a)
|
||||
pthread_attr_setstacksize(a, ThreadStackSize)
|
||||
if pthread_create(t.sys, a, threadProcWrapper[TArg], addr(t)) != 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue