diff options
author | Araq <rumpf_a@web.de> | 2011-08-12 01:24:47 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-08-12 01:24:47 +0200 |
commit | c6038dda04b9c28d20bb9a1baaa226f2ecdd1f5c (patch) | |
tree | 72ca546ab43e00122325dda618a8eafcf81bb43b /lib | |
parent | 7ad5cab17e742eaeb5a6910f79f5bbaaa5e4113c (diff) | |
download | Nim-c6038dda04b9c28d20bb9a1baaa226f2ecdd1f5c.tar.gz |
bugfix: running for threads
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/system/threads.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 60643b526..39e5d3908 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. |