class ThreadState

Defined at line 23 of file ../../zircon/kernel/object/include/object/thread_state.h

Only RUNNING, SUSPENDED, or DYING threads may participate in

exception handling.

Public Methods

Lifecycle lifecycle ()

Defined at line 78 of file ../../zircon/kernel/object/include/object/thread_state.h

Exception exception ()

Only RUNNING, SUSPENDED, and DYING threads have meaningful

exception state.

Defined at line 108 of file ../../zircon/kernel/object/include/object/thread_state.h

void set (Lifecycle lifecycle)

Defined at line 135 of file ../../zircon/kernel/object/include/object/thread_state.h

void set (Exception exception)

Defined at line 227 of file ../../zircon/kernel/object/include/object/thread_state.h

Enumerations

enum Lifecycle
Name Value
INITIAL 0
INITIALIZED 1
RUNNING 2
SUSPENDED 3
DYING 4
DEAD 5

The only legal transition that isn't from top-to-bottom occurs

when a thread is resumed after being suspended.

Defined at line 27 of file ../../zircon/kernel/object/include/object/thread_state.h

enum Exception
Name Value
IDLE 0
UNPROCESSED 1
TRY_NEXT 2
RESUME 3

IDLE threads become UNPROCESSED. UNPROCESSED threads are told

to either RESUME or TRY_NEXT in a loop until they are killed

(no more exception handlers) or resumed, in which case they

become IDLE again.

Defined at line 61 of file ../../zircon/kernel/object/include/object/thread_state.h