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