![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#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_SNAPSHOT * | next |
| Next entry in Thread snapshot. | |
| 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_SNAPSHOT* next |
Next entry in Thread snapshot.