RetroArch
Public Attributes | List of all members
OSThread Struct Reference

#include <thread.h>

Collaboration diagram for OSThread:
[legend]

Public Attributes

OSContext context
 
uint32_t tag
 
OSThreadState state
 
OSThreadAttributes attr
 
uint16_t id
 
int32_t suspendCounter
 
int32_t priority
 
int32_t basePriority
 
int32_t exitValue
 
uint32_t unknown0 [0x9]
 
OSThreadQueuequeue
 
OSThreadLink link
 
OSThreadQueue joinQueue
 
OSMutexmutex
 
OSMutexQueue mutexQueue
 
OSThreadLink activeLink
 
voidstackStart
 
voidstackEnd
 
OSThreadEntryPointFn entryPoint
 
uint32_t unknown1 [0x77]
 
uint32_t specific [0x10]
 
uint32_t unknown2
 
const char * name
 
uint32_t unknown3
 
voiduserStackPointer
 
OSThreadCleanupCallbackFn cleanupCallback
 
OSThreadDeallocatorFn deallocator
 
BOOL cancelState
 
OSThreadRequest requestFlag
 
int32_t needSuspend
 
int32_t suspendResult
 
OSThreadQueue suspendQueue
 
uint32_t unknown4 [0x2B]
 

Member Data Documentation

◆ activeLink

OSThreadLink OSThread::activeLink

Link for global active thread queue

◆ attr

OSThreadAttributes OSThread::attr

Bitfield of OS_THREAD_ATTRIB

◆ basePriority

int32_t OSThread::basePriority

Base priority of thread, 0 is highest priority, 31 is lowest priority.

◆ cancelState

BOOL OSThread::cancelState

If TRUE then a thread can be cancelled or suspended, set with OSSetThreadCancelState

◆ cleanupCallback

OSThreadCleanupCallbackFn OSThread::cleanupCallback

Called just before thread is terminated, set with OSSetThreadCleanupCallback

◆ context

OSContext OSThread::context

◆ deallocator

OSThreadDeallocatorFn OSThread::deallocator

Called just after a thread is terminated, set with OSSetThreadDeallocator

◆ entryPoint

OSThreadEntryPointFn OSThread::entryPoint

Thread entry point

◆ exitValue

int32_t OSThread::exitValue

Exit value

◆ id

uint16_t OSThread::id

Unique thread ID

◆ joinQueue

OSThreadQueue OSThread::joinQueue

Queue of threads waiting to join this thread

◆ link

OSThreadLink OSThread::link

Link used for thread queue

◆ mutex

OSMutex* OSThread::mutex

Mutex this thread is waiting to lock

◆ mutexQueue

OSMutexQueue OSThread::mutexQueue

Queue of mutexes this thread owns

◆ name

const char* OSThread::name

Thread name, accessed with OSSetThreadName and OSGetThreadName.

◆ needSuspend

int32_t OSThread::needSuspend

Pending suspend request count

◆ priority

int32_t OSThread::priority

Actual priority of thread.

◆ queue

OSThreadQueue* OSThread::queue

Queue the thread is currently waiting on

◆ requestFlag

OSThreadRequest OSThread::requestFlag

Current thread request, used for cancelleing and suspending the thread.

◆ specific

uint32_t OSThread::specific[0x10]

Thread specific values, accessed with OSSetThreadSpecific and OSGetThreadSpecific.

◆ stackEnd

void* OSThread::stackEnd

Stack end (bottom, lowest address)

◆ stackStart

void* OSThread::stackStart

Stack start (top, highest address)

◆ state

OSThreadState OSThread::state

Bitfield of OS_THREAD_STATE

◆ suspendCounter

int32_t OSThread::suspendCounter

Suspend count (increased by OSSuspendThread).

◆ suspendQueue

OSThreadQueue OSThread::suspendQueue

Queue of threads waiting for a thread to be suspended.

◆ suspendResult

int32_t OSThread::suspendResult

Result of thread suspend

◆ tag

uint32_t OSThread::tag

Should always be set to the value OS_THREAD_TAG.

◆ unknown0

uint32_t OSThread::unknown0[0x9]

◆ unknown1

uint32_t OSThread::unknown1[0x77]

◆ unknown2

uint32_t OSThread::unknown2

◆ unknown3

uint32_t OSThread::unknown3

◆ unknown4

uint32_t OSThread::unknown4[0x2B]

◆ userStackPointer

void* OSThread::userStackPointer

The stack pointer passed in OSCreateThread.


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