fixes bootstrapping

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

View file

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

View file

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