#include <wiiu/types.h>
#include "time.h"
Go to the source code of this file.
|
| enum | OS_THREAD_STATE {
OS_THREAD_STATE_NONE = 0,
OS_THREAD_STATE_READY = 1 << 0,
OS_THREAD_STATE_RUNNING = 1 << 1,
OS_THREAD_STATE_WAITING = 1 << 2,
OS_THREAD_STATE_MORIBUND = 1 << 3
} |
| |
| enum | OS_THREAD_REQUEST { OS_THREAD_REQUEST_NONE = 0,
OS_THREAD_REQUEST_SUSPEND = 1,
OS_THREAD_REQUEST_CANCEL = 2
} |
| |
| enum | OS_THREAD_ATTRIB {
OS_THREAD_ATTRIB_AFFINITY_CPU0 = 1 << 0,
OS_THREAD_ATTRIB_AFFINITY_CPU1 = 1 << 1,
OS_THREAD_ATTRIB_AFFINITY_CPU2 = 1 << 2,
OS_THREAD_ATTRIB_AFFINITY_ANY = ((1 << 0) | (1 << 1) | (1 << 2)),
OS_THREAD_ATTRIB_DETACHED = 1 << 3,
OS_THREAD_ATTRIB_STACK_USAGE = 1 << 5
} |
| |
|
| void | OSCancelThread (OSThread *thread) |
| |
| int32_t | OSCheckActiveThreads () |
| |
| int32_t | OSCheckThreadStackUsage (OSThread *thread) |
| |
| void | OSClearThreadStackUsage (OSThread *thread) |
| |
| void | OSContinueThread (OSThread *thread) |
| |
| BOOL | OSCreateThread (OSThread *thread, OSThreadEntryPointFn entry, int32_t argc, char *argv, void *stack, uint32_t stackSize, int32_t priority, OSThreadAttributes attributes) |
| |
| void | OSDetachThread (OSThread *thread) |
| |
| void | OSExitThread (int32_t result) |
| |
| void | OSGetActiveThreadLink (OSThread *thread, OSThreadLink *link) |
| |
| OSThread * | OSGetCurrentThread () |
| |
| OSThread * | OSGetDefaultThread (uint32_t coreID) |
| |
| uint32_t | OSGetStackPointer () |
| |
| uint32_t | OSGetThreadAffinity (OSThread *thread) |
| |
| const char * | OSGetThreadName (OSThread *thread) |
| |
| int32_t | OSGetThreadPriority (OSThread *thread) |
| |
| uint32_t | OSGetThreadSpecific (uint32_t id) |
| |
| BOOL | OSIsThreadSuspended (OSThread *thread) |
| |
| BOOL | OSIsThreadTerminated (OSThread *thread) |
| |
| BOOL | OSJoinThread (OSThread *thread, int *threadResult) |
| |
| int32_t | OSResumeThread (OSThread *thread) |
| |
| BOOL | OSRunThread (OSThread *thread, OSThreadEntryPointFn entry, int argc, const char **argv) |
| |
| BOOL | OSSetThreadAffinity (OSThread *thread, uint32_t affinity) |
| |
| BOOL | OSSetThreadCancelState (BOOL state) |
| |
| OSThreadCleanupCallbackFn | OSSetThreadCleanupCallback (OSThread *thread, OSThreadCleanupCallbackFn callback) |
| |
| OSThreadDeallocatorFn | OSSetThreadDeallocator (OSThread *thread, OSThreadDeallocatorFn deallocator) |
| |
| void | OSSetThreadName (OSThread *thread, const char *name) |
| |
| BOOL | OSSetThreadPriority (OSThread *thread, int32_t priority) |
| |
| BOOL | OSSetThreadRunQuantum (OSThread *thread, uint32_t quantum) |
| |
| void | OSSetThreadSpecific (uint32_t id, uint32_t value) |
| |
| BOOL | OSSetThreadStackUsage (OSThread *thread) |
| |
| void | OSSleepThread (OSThreadQueue *queue) |
| |
| void | OSSleepTicks (OSTime ticks) |
| |
| uint32_t | OSSuspendThread (OSThread *thread) |
| |
| void | OSTestThreadCancel () |
| |
| void | OSWakeupThread (OSThreadQueue *queue) |
| |
| void | OSYieldThread () |
| |
| void | OSInitThreadQueue (OSThreadQueue *queue) |
| |
| void | OSInitThreadQueueEx (OSThreadQueue *queue, void *parent) |
| |
◆ OS_CONTEXT_TAG
| #define OS_CONTEXT_TAG 0x4F53436F6E747874ull |
◆ OS_THREAD_TAG
| #define OS_THREAD_TAG 0x74487244u |
◆ OSContext
◆ OSFastMutex
◆ OSFastMutexQueue
◆ OSMutex
◆ OSMutexQueue
◆ OSThread
◆ OSThreadAttributes
◆ OSThreadCleanupCallbackFn
◆ OSThreadDeallocatorFn
◆ OSThreadEntryPointFn
| typedef int(* OSThreadEntryPointFn) (int argc, const char **argv) |
◆ OSThreadRequest
◆ OSThreadState
◆ OS_THREAD_ATTRIB
| Enumerator |
|---|
| OS_THREAD_ATTRIB_AFFINITY_CPU0 | Allow the thread to run on CPU0.
|
| OS_THREAD_ATTRIB_AFFINITY_CPU1 | Allow the thread to run on CPU1.
|
| OS_THREAD_ATTRIB_AFFINITY_CPU2 | Allow the thread to run on CPU2.
|
| OS_THREAD_ATTRIB_AFFINITY_ANY | Allow the thread to run any CPU.
|
| OS_THREAD_ATTRIB_DETACHED | Start the thread detached.
|
| OS_THREAD_ATTRIB_STACK_USAGE | Enables tracking of stack usage.
|
◆ OS_THREAD_REQUEST
| Enumerator |
|---|
| OS_THREAD_REQUEST_NONE | |
| OS_THREAD_REQUEST_SUSPEND | |
| OS_THREAD_REQUEST_CANCEL | |
◆ OS_THREAD_STATE
| Enumerator |
|---|
| OS_THREAD_STATE_NONE | |
| OS_THREAD_STATE_READY | Thread is ready to run
|
| OS_THREAD_STATE_RUNNING | Thread is running
|
| OS_THREAD_STATE_WAITING | Thread is waiting, i.e. on a mutex
|
| OS_THREAD_STATE_MORIBUND | Thread is about to terminate
|
◆ OSCancelThread()
◆ OSCheckActiveThreads()
◆ OSCheckThreadStackUsage()
◆ OSClearThreadStackUsage()
◆ OSContinueThread()
◆ OSCreateThread()
◆ OSDetachThread()
◆ OSExitThread()
◆ OSGetActiveThreadLink()
◆ OSGetCurrentThread()
◆ OSGetDefaultThread()
◆ OSGetStackPointer()
◆ OSGetThreadAffinity()
◆ OSGetThreadName()
◆ OSGetThreadPriority()
◆ OSGetThreadSpecific()
◆ OSInitThreadQueue()
◆ OSInitThreadQueueEx()
◆ OSIsThreadSuspended()
◆ OSIsThreadTerminated()
◆ OSJoinThread()
◆ OSResumeThread()
◆ OSRunThread()
◆ OSSetThreadAffinity()
◆ OSSetThreadCancelState()
| BOOL OSSetThreadCancelState |
( |
BOOL |
state | ) |
|
◆ OSSetThreadCleanupCallback()
◆ OSSetThreadDeallocator()
◆ OSSetThreadName()
◆ OSSetThreadPriority()
◆ OSSetThreadRunQuantum()
◆ OSSetThreadSpecific()
◆ OSSetThreadStackUsage()
◆ OSSleepThread()
◆ OSSleepTicks()
◆ OSSuspendThread()
◆ OSTestThreadCancel()
| void OSTestThreadCancel |
( |
| ) |
|
◆ OSWakeupThread()
◆ OSYieldThread()