µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::rtos::thread::state Struct Reference

Thread states. More...

#include <cmsis-plus/rtos/os.h>

Public Types

enum  : state_t {
  undefined = 0 ,
  ready = 1 ,
  running = 2 ,
  suspended = 3 ,
  terminated = 4 ,
  destroyed = 5 ,
  initializing = 6
}
 An enumeration with all possible thread states. More...
 

Detailed Description

The os::rtos::thread::state definition is a container for thread states.

Definition at line 368 of file os-thread.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : state_t
Enumerator
undefined 

Used to catch uninitialised threads.

ready 

Present in the READY list and competing for CPU.

running 

Has the CPU and runs.

suspended 

Not present in the READY list, waiting for an event.

terminated 

No longer usable, but resources not yet released.

destroyed 

Terminated and resources (like stack) released.

initializing 

Used to check reused threads.

Definition at line 373 of file os-thread.h.

374 {
378 undefined = 0, //
382 ready = 1, //
386 running = 2, //
390 suspended = 3, //
394 terminated = 4, //
398 destroyed = 5, //
402 initializing = 6 //
403 };
@ running
Has the CPU and runs.
Definition os-thread.h:386
@ destroyed
Terminated and resources (like stack) released.
Definition os-thread.h:398
@ initializing
Used to check reused threads.
Definition os-thread.h:402
@ terminated
No longer usable, but resources not yet released.
Definition os-thread.h:394
@ ready
Present in the READY list and competing for CPU.
Definition os-thread.h:382
@ undefined
Used to catch uninitialised threads.
Definition os-thread.h:378
@ suspended
Not present in the READY list, waiting for an event.
Definition os-thread.h:390

The documentation for this struct was generated from the following file: