New concurrency model: next steps

This commit is contained in:
Araq 2014-04-19 22:24:43 +02:00
commit 3b69a8d27a
23 changed files with 460 additions and 200 deletions

View file

@ -7,6 +7,8 @@
# distribution, for details about the copyright.
#
{.deadCodeElim:on.}
from posix import TSocketHandle
const

View file

@ -7,6 +7,8 @@
# distribution, for details about the copyright.
#
{.deadCodeElim:on.}
# Get the platform-dependent flags.
# Structure describing an inotify event.
type

View file

@ -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>".}

View file

@ -27,6 +27,8 @@
## resulting C code will just ``#include <XYZ.h>`` and *not* define the
## symbols declared here.
{.deadCodeElim:on.}
from times import TTime
const