New concurrency model: next steps
This commit is contained in:
parent
8e08ff559f
commit
3b69a8d27a
23 changed files with 460 additions and 200 deletions
|
|
@ -1,3 +1,5 @@
|
|||
{.deadCodeElim:on.}
|
||||
|
||||
import posix
|
||||
|
||||
const
|
||||
|
|
@ -22,4 +24,5 @@ const
|
|||
|
||||
# fn should be of type proc (a2: pointer): void {.cdecl.}
|
||||
proc clone*(fn: pointer; child_stack: pointer; flags: cint;
|
||||
arg: pointer; ptid: ptr TPid; tls: pointer; ctid: ptr TPid): cint {.importc, header: "<sched.h>".}
|
||||
arg: pointer; ptid: ptr TPid; tls: pointer;
|
||||
ctid: ptr TPid): cint {.importc, header: "<sched.h>".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue