1) ThreadContext.hpp declares an enum type ThreadState
(THREAD_WAITING_TO_START,
THREAD_STARTING, ...., THREAD_START_FAILED).
2) The Thread::get.*Count() routines depend on Thread::theThreadState to
report
the correct number of threads in specific state.
How is the thread state transition diagram looks like? Here is what I
infered
from the existing code:
When a new thread is created its state is WAITING_TO_START,
When the thread is started from startThread its state is set to RUNNING
(this is what added to version 1.17 and checked in as version 1.18).
--
Hans Dulimarta, Ph.D. | dul...@co...
Research Associate | http://www.egr.msu.edu/~dulimart
P: 517-432-7589 | http://snapsource.sourceforge.net
F: 760-281-7691 | http://corelinux.sourceforge.net
ECE Dept. Michigan State University, E. Lansing, MI 48824
|