From c6038dda04b9c28d20bb9a1baaa226f2ecdd1f5c Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 12 Aug 2011 01:24:47 +0200 Subject: [PATCH] bugfix: running for threads --- lib/system/threads.nim | 2 +- todo.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 60643b5269..39e5d3908c 100755 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -306,7 +306,7 @@ else: proc running*[TMsg](t: TThread[TMsg]): bool {.inline.} = ## returns true if `t` is running. - result = t.emptyFn == nil and t.dataFn == nil + result = t.emptyFn != nil or t.dataFn != nil proc joinThread*[TMsg](t: TThread[TMsg]) {.inline.} = ## waits for the thread `t` to finish. diff --git a/todo.txt b/todo.txt index bc37ced38e..d3babb9639 100755 --- a/todo.txt +++ b/todo.txt @@ -1,7 +1,7 @@ Version 0.8.14 ============== -- test ``m*`` for generics +- fix ``m*`` for generics - optional indentation for 'case' statement - make threadvar efficient again on linux after testing - test the sort implementation again