vitasdk
Documentation of the vitasdk
threadmgr.h File Reference
#include <psp2common/types.h>

Go to the source code of this file.

Data Structures

struct  SceKernelThreadRunStatus
 Statistics about a running thread. More...
 
struct  SceKernelThreadOptParam
 Additional options used when creating threads. More...
 
struct  SceKernelThreadInfo
 Structure to hold the status information for a thread. More...
 
struct  SceKernelCallbackInfo
 Structure to hold the status information for a callback. More...
 
struct  SceKernelSemaOptParam
 Additional options used when creating semaphores. More...
 
struct  SceKernelSemaInfo
 Current state of a semaphore. More...
 
struct  SceKernelEventFlagOptParam
 
struct  SceKernelEventFlagInfo
 Structure to hold the event flag information. More...
 
struct  SceKernelLwCondWork
 
struct  SceKernelLwCondOptParam
 
struct  SceKernelLwMutexWork
 
struct  SceKernelLwMutexOptParam
 
struct  SceKernelMutexOptParam
 Additional options used when creating mutexes. More...
 
struct  SceKernelMutexInfo
 Current state of a mutex. More...
 
struct  SceKernelCondOptParam
 Additional options used when creating condition variables. More...
 
struct  SceKernelCondInfo
 Current state of a condition variable. More...
 
struct  SceKernelThreadRunStatus.cpuInfo
 

Macros

#define SCE_KERNEL_THREAD_CPU_AFFINITY_MASK_DEFAULT   (0)
 Inherit calling thread affinity mask. More...
 

Typedefs

typedef int(* SceKernelThreadEntry) (SceSize args, void *argp)
 
typedef int(* SceKernelCallbackFunction) (int notifyId, int notifyCount, int notifyArg, void *userData)
 Callback function prototype. More...
 

Enumerations

enum  SceKernelIdListType {
  SCE_KERNEL_TMID_Thread = 1 , SCE_KERNEL_TMID_Semaphore = 2 , SCE_KERNEL_TMID_EventFlag = 3 , SCE_KERNEL_TMID_Mbox = 4 ,
  SCE_KERNEL_TMID_Vpl = 5 , SCE_KERNEL_TMID_Fpl = 6 , SCE_KERNEL_TMID_Mpipe = 7 , SCE_KERNEL_TMID_Callback = 8 ,
  SCE_KERNEL_TMID_ThreadEventHandler = 9 , SCE_KERNEL_TMID_Alarm = 10 , SCE_KERNEL_TMID_VTimer = 11 , SCE_KERNEL_TMID_SleepThread = 64 ,
  SCE_KERNEL_TMID_DelayThread = 65 , SCE_KERNEL_TMID_SuspendThread = 66 , SCE_KERNEL_TMID_DormantThread = 67
}
 Threadmgr types. More...
 
enum  SceThreadStatus {
  SCE_THREAD_RUNNING = 1 , SCE_THREAD_READY = 2 , SCE_THREAD_STANDBY = 4 , SCE_THREAD_WAITING = 8 ,
  SCE_THREAD_SUSPEND = 8 , SCE_THREAD_DORMANT = 16 , SCE_THREAD_STOPPED = 16 , SCE_THREAD_DELETED = 32 ,
  SCE_THREAD_KILLED = 32 , SCE_THREAD_DEAD = 64 , SCE_THREAD_STAGNANT = 128 , SCE_THREAD_SUSPENDED = 256
}
 
enum  SceKernelWaitableAttribute { SCE_KERNEL_ATTR_THREAD_FIFO = 0x00000000 , SCE_KERNEL_ATTR_THREAD_PRIO = 0x00002000 , SCE_KERNEL_ATTR_OPENABLE = 0x00000080 }
 
enum  SceEventFlagAttributes {
  SCE_EVENT_THREAD_FIFO = SCE_KERNEL_ATTR_THREAD_FIFO , SCE_EVENT_THREAD_PRIO = SCE_KERNEL_ATTR_THREAD_PRIO , SCE_EVENT_WAITSINGLE = 0 , SCE_EVENT_WAITMULTIPLE = 0x00001000 ,
  SCE_EVENT_OPENABLE = SCE_KERNEL_ATTR_OPENABLE
}
 Event flag creation attributes. More...
 
enum  SceEventFlagWaitTypes { SCE_EVENT_WAITAND = 0 , SCE_EVENT_WAITOR = 1 , SCE_EVENT_WAITCLEAR = 2 , SCE_EVENT_WAITCLEAR_PAT = 4 }
 Event flag wait types. More...
 
enum  SceKernelMutexAttribute { SCE_KERNEL_MUTEX_ATTR_RECURSIVE = 0x02 , SCE_KERNEL_MUTEX_ATTR_CEILING = 0x04 }
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x34, SceKernelThreadRunStatus)
 
 VITASDK_BUILD_ASSERT_EQ (0x1C, SceKernelThreadOptParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x80, SceKernelThreadInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x3C, SceKernelCallbackInfo)
 
 VITASDK_BUILD_ASSERT_EQ (4, SceKernelSemaOptParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x3C, SceKernelSemaInfo)
 
 VITASDK_BUILD_ASSERT_EQ (4, SceKernelEventFlagOptParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x38, SceKernelEventFlagInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceKernelLwCondWork)
 
 VITASDK_BUILD_ASSERT_EQ (4, SceKernelLwCondOptParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x20, SceKernelLwMutexWork)
 
 VITASDK_BUILD_ASSERT_EQ (4, SceKernelLwMutexOptParam)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceKernelMutexOptParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x3C, SceKernelMutexInfo)
 
 VITASDK_BUILD_ASSERT_EQ (4, SceKernelCondOptParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x34, SceKernelCondInfo)