coastline 0.0.4
Loading...
Searching...
No Matches
OSThread_s Struct Reference

A thread: its place in the queues, its state, and the registers saved when it last stopped. More...

#include <os.h>

Collaboration diagram for OSThread_s:

Public Attributes

struct OSThread_s * next
OSPri priority
struct OSThread_s ** queue
struct OSThread_s * tlnext
u16 state
u16 flags
OSId id
int fp
__OSThreadContext context

Detailed Description

A thread: its place in the queues, its state, and the registers saved when it last stopped.

Member Data Documentation

◆ next

struct OSThread_s* OSThread_s::next

The next thread of the queue the thread waits on.

◆ priority

OSPri OSThread_s::priority

The priority, from OS_PRIORITY_IDLE to OS_PRIORITY_MAX.

◆ queue

struct OSThread_s** OSThread_s::queue

The queue the thread is on, or NULL.

◆ tlnext

struct OSThread_s* OSThread_s::tlnext

The next thread of the active queue.

◆ state

u16 OSThread_s::state

The run state, one of the OS_STATE_* values.

◆ flags

u16 OSThread_s::flags

The flags of a CPU break or fault in the thread.

◆ id

OSId OSThread_s::id

The identifier osCreateThread() received.

◆ fp

int OSThread_s::fp

Whether the thread has used the FPU and its context saves it.

◆ context

__OSThreadContext OSThread_s::context

The registers saved while the thread does not run.


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