* src/threads/thread.cpp (threads_thread_is_alive): Recognize parked states.
authorStefan Ring <stefan@complang.tuwien.ac.at>
Wed, 22 Oct 2008 12:32:29 +0000 (14:32 +0200)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Wed, 22 Oct 2008 12:32:29 +0000 (14:32 +0200)
src/threads/thread.cpp

index 0cf22e757f0518046279f00842ff6e49b8f4a924..3cad59663bb13114e129be8fbcef0585dc1735bc 100644 (file)
@@ -1192,6 +1192,8 @@ bool threads_thread_is_alive(threadobject *t)
        case THREAD_STATE_BLOCKED:
        case THREAD_STATE_WAITING:
        case THREAD_STATE_TIMED_WAITING:
+       case THREAD_STATE_PARKED:
+       case THREAD_STATE_TIMED_PARKED:
                return true;
 
        default: