Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_THREAD_SNAPSHOT Struct Reference

#include <threads.h>

Data Fields

THREAD_HANDLE handle
 Handle of the thread.
uint32_t state
 State of the Thread (eg THREAD_STATE_RUNNING).
uint32_t flags
 Flags of the Thread (eg THREAD_FLAG_PERSIST).
uint32_t cpu
 CPU from last ContextSwitch.
uint32_t priority
 Priority of the Thread (eg THREAD_PRIORITY_NORMAL).
uint32_t affinity
 CPU Affinity mask of the Thread.
void * stackbase
 Base (Top) of the thread stack.
uint32_t stacksize
 Stack length in bytes.
void * stackpointer
 Stack pointer from last ContextSwitch.
char name [THREAD_NAME_LENGTH]
 The name of the Thread.
THREAD_HANDLE parent
 Handle of the parent thread.
uint32_t exitcode
 Thread Exit Code.
uint32_t lasterror
 Thread Last Error.
LCID locale
 Thread Locale.
uint32_t targetcpu
 Target CPU of the Thread for next ContextSwitch.
uint32_t targetpriority
 Target Priority of the Thread for next ContextSwitch (eg THREAD_PRIORITY_NORMAL).
int64_t createtime
 The time when this thread was created.
int64_t exittime
 The time when this thread exited or was terminated.
int64_t kerneltime
 The total amount of time this thread has been in the running state (ie CPU time consumed).
int64_t switchcount
 The number of times this thread has been selected to run by a context switch.
THREAD_SNAPSHOTnext
 Next entry in Thread snapshot.

Field Documentation

◆ handle

THREAD_HANDLE handle

Handle of the thread.

◆ state

uint32_t state

State of the Thread (eg THREAD_STATE_RUNNING).

◆ flags

uint32_t flags

Flags of the Thread (eg THREAD_FLAG_PERSIST).

◆ cpu

uint32_t cpu

CPU from last ContextSwitch.

◆ priority

uint32_t priority

Priority of the Thread (eg THREAD_PRIORITY_NORMAL).

◆ affinity

uint32_t affinity

CPU Affinity mask of the Thread.

◆ stackbase

void* stackbase

Base (Top) of the thread stack.

◆ stacksize

uint32_t stacksize

Stack length in bytes.

◆ stackpointer

void* stackpointer

Stack pointer from last ContextSwitch.

◆ name

char name[THREAD_NAME_LENGTH]

The name of the Thread.

◆ parent

THREAD_HANDLE parent

Handle of the parent thread.

◆ exitcode

uint32_t exitcode

Thread Exit Code.

◆ lasterror

uint32_t lasterror

Thread Last Error.

◆ locale

LCID locale

Thread Locale.

◆ targetcpu

uint32_t targetcpu

Target CPU of the Thread for next ContextSwitch.

◆ targetpriority

uint32_t targetpriority

Target Priority of the Thread for next ContextSwitch (eg THREAD_PRIORITY_NORMAL).

◆ createtime

int64_t createtime

The time when this thread was created.

◆ exittime

int64_t exittime

The time when this thread exited or was terminated.

◆ kerneltime

int64_t kerneltime

The total amount of time this thread has been in the running state (ie CPU time consumed).

◆ switchcount

int64_t switchcount

The number of times this thread has been selected to run by a context switch.

◆ next

Next entry in Thread snapshot.


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