bugfix: running for threads

This commit is contained in:
Araq 2011-08-12 01:24:47 +02:00
commit c6038dda04
2 changed files with 2 additions and 2 deletions

View file

@ -306,7 +306,7 @@ else:
proc running*[TMsg](t: TThread[TMsg]): bool {.inline.} = proc running*[TMsg](t: TThread[TMsg]): bool {.inline.} =
## returns true if `t` is running. ## 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.} = proc joinThread*[TMsg](t: TThread[TMsg]) {.inline.} =
## waits for the thread `t` to finish. ## waits for the thread `t` to finish.

View file

@ -1,7 +1,7 @@
Version 0.8.14 Version 0.8.14
============== ==============
- test ``m*`` for generics - fix ``m*`` for generics
- optional indentation for 'case' statement - optional indentation for 'case' statement
- make threadvar efficient again on linux after testing - make threadvar efficient again on linux after testing
- test the sort implementation again - test the sort implementation again