Xenomai API  2.5.6.1
Thread state flags.

Bits reporting permanent or transient states of thread. More...

Collaboration diagram for Thread state flags.:

Defines

#define XNSUSP   0x00000001
 Suspended.
#define XNPEND   0x00000002
 Sleep-wait for a resource.
#define XNDELAY   0x00000004
 Delayed.
#define XNREADY   0x00000008
 Linked to the ready queue.
#define XNDORMANT   0x00000010
 Not started yet or killed.
#define XNZOMBIE   0x00000020
 Zombie thread in deletion process.
#define XNRESTART   0x00000040
 Restarting thread.
#define XNSTARTED   0x00000080
 Thread has been started.
#define XNMAPPED   0x00000100
 Mapped to a regular Linux task (shadow only)
#define XNRELAX   0x00000200
 Relaxed shadow thread (blocking bit)
#define XNMIGRATE   0x00000400
 Thread is currently migrating to another CPU.
#define XNHELD   0x00000800
 Thread is held to process emergency.
#define XNBOOST   0x00001000
 Undergoes a PIP boost.
#define XNDEBUG   0x00002000
 Hit a debugger breakpoint (shadow only)
#define XNLOCK   0x00004000
 Holds the scheduler lock (i.e.
#define XNRRB   0x00008000
 Undergoes a round-robin scheduling.
#define XNASDI   0x00010000
 ASR are disabled.
#define XNDEFCAN   0x00020000
 Deferred cancelability mode (self-set only)
#define XNTRAPSW   0x00040000
 Trap execution mode switches.
#define XNRPIOFF   0x00080000
 Stop priority coupling (shadow only)
#define XNFPU   0x00100000
 Thread uses FPU.
#define XNSHADOW   0x00200000
 Shadow thread.
#define XNROOT   0x00400000
 Root thread (that is, Linux/IDLE)
#define XNSWREP   0x00800000
 Mode switch already reported.

Detailed Description

Bits reporting permanent or transient states of thread.


Define Documentation

#define XNHELD   0x00000800

Thread is held to process emergency.

Referenced by xnpod_resume_thread(), and xnpod_suspend_thread().

#define XNLOCK   0x00004000

Holds the scheduler lock (i.e.

not preemptible)

Referenced by pthread_set_mode_np(), xnpod_set_thread_mode(), and xnpod_welcome_thread().

#define XNMIGRATE   0x00000400

Thread is currently migrating to another CPU.

Referenced by xnpod_delete_thread().

#define XNREADY   0x00000008
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines