bugfix: running for threads
This commit is contained in:
parent
7ad5cab17e
commit
c6038dda04
2 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
2
todo.txt
2
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue