diff options
author | Araq <rumpf_a@web.de> | 2011-12-03 19:22:01 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-12-03 19:22:01 +0100 |
commit | 728328eec2064ed2086b230c09db063268d064fd (patch) | |
tree | d98da048c144779c737627b2ab12a8ad62aeeff7 /lib/system/threads.nim | |
parent | c8d270268a89b172cc039a793bc56256dc334dca (diff) | |
download | Nim-728328eec2064ed2086b230c09db063268d064fd.tar.gz |
threads compile again; attempt to fix serious code gen issue (except + return)
Diffstat (limited to 'lib/system/threads.nim')
-rwxr-xr-x | lib/system/threads.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 7c26cf8ee..08184acce 100755 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -221,7 +221,7 @@ when not defined(useNimRtl): t.prev = nil t.next = threadList if threadList != nil: - sysAssert(threadList.prev == nil) + sysAssert(threadList.prev == nil, "threadList.prev == nil") threadList.prev = t threadList = t ReleaseSys(HeapLock) @@ -315,7 +315,7 @@ proc joinThreads*[TArg](t: openArray[TThread[TArg]]) = ## waits for every thread in `t` to finish. when hostOS == "windows": var a: array[0..255, TSysThread] - sysAssert a.len >= t.len + sysAssert a.len >= t.len, "a.len >= t.len" for i in 0..t.high: a[i] = t[i].sys discard WaitForMultipleObjects(t.len, cast[ptr TSysThread](addr(a)), 1, -1) else: |