bugfix: running for threads

This commit is contained in:
Araq
2011-08-12 01:24:47 +02:00
parent 7ad5cab17e
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.} =
## 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.