fixes bootstrapping

This commit is contained in:
Araq
2014-04-20 21:34:17 +02:00
parent 1bb0bdec24
commit da7d6c8446
2 changed files with 3 additions and 2 deletions

View File

@@ -193,6 +193,8 @@ when defined(nimNewShared):
`shared`* {.magic: "Shared".}
guarded* {.magic: "Guarded".}
include "system/inclrtl"
const NoFakeVars* = defined(NimrodVM) ## true if the backend doesn't support \
## "fake variables" like 'var EBADF {.importc.}: cint'.
@@ -1027,8 +1029,6 @@ template sysAssert(cond: bool, msg: string) =
echo "[SYSASSERT] ", msg
quit 1
include "system/inclrtl"
when not defined(JS) and not defined(nimrodVm) and hostOS != "standalone":
include "system/cgprocs"

View File

@@ -121,6 +121,7 @@ proc slave(w: ptr Worker) {.thread.} =
signal(gSomeReady)
await(w.taskArrived)
assert(not w.ready)
# shield against spurious wakeups:
if w.data != nil:
w.f(w, w.data)
w.data = nil