vitasdk
Documentation of the vitasdk
threadmgr.h
Go to the documentation of this file.
1
6#ifndef _PSP2_KERNEL_THREADMGR_H_
7#define _PSP2_KERNEL_THREADMGR_H_
8
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
32
38
45
52
62
79
90
101
116
130
131#ifdef __cplusplus
132}
133#endif
134
135#endif /* _PSP2_KERNEL_THREADMGR_H_ */
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
SceUInt64 mask
Mask used by SCE_LSDB_FILTER_OPERATOR_BITMASK_EQUAL.
Definition lsdb.h:4
int __sceKernelCreateLwMutex(SceKernelLwMutexWork *work, const char *name, SceUInt32 attr, const sceKernelCreateLwMutex_opt *opt)
Creates a lightweight mutex through the raw user export.
SceSize info_size
Number of bytes to copy to and from info.
Definition threadmgr.h:34
SceUInt32 unused[2]
Ignored.
Definition threadmgr.h:42
SceKernelThreadEventHandler handler
Event callback.
Definition threadmgr.h:47
const SceKernelLwMutexOptParam * opt_param
Optional lightweight mutex parameters.
Definition threadmgr.h:41
SceInt32 cpu_affinity_mask
CPU affinity encoded in bits 16-19.
Definition threadmgr.h:57
SceSize info_size
Number of bytes to copy to and from info.
Definition threadmgr.h:28
void * common
Value passed to the handler.
Definition threadmgr.h:48
SceInt32 init_count
Initial lock count.
Definition threadmgr.h:40
const SceKernelThreadOptParam * opt_param
Optional thread parameters.
Definition threadmgr.h:58
SceUInt32 unused[2]
Ignored.
Definition threadmgr.h:49
SceUInt32 attr
Thread attributes.
Definition threadmgr.h:56
SceSize stack_size
Thread stack size.
Definition threadmgr.h:55
SceUIntVAddr caller_address
Wrapper return address used to identify the caller module.
Definition threadmgr.h:59
SceUID sceKernelCreateThreadForUser(const char *name, SceKernelThreadEntry entry, SceInt32 init_priority, const sceKernelCreateThreadForUser_opt *opt)
Creates a user thread in the dormant state through the raw four-argument export.
SceUInt32 unused
Ignored; the public wrapper leaves this word uninitialized.
Definition threadmgr.h:35
SceUInt32 unused
Ignored; the public wrapper leaves this word uninitialized.
Definition threadmgr.h:29
int(* SceKernelThreadEventHandler)(SceInt32 type, SceUID threadId, SceInt32 arg, void *pCommon)
Definition threadmgr.h:107
int _sceKernelGetMutexInfo(SceUID mutex_id, SceKernelMutexInfo *info, const _sceKernelGetMutexInfo_opt *opt)
Gets mutex information through the raw user export.
int(* SceKernelThreadEntry)(SceSize args, void *argp)
Definition threadmgr.h:105
SceSize size
Ignored on FW 3.60; the public wrapper sets it to 0x18.
Definition threadmgr.h:54
int _sceKernelGetThreadInfo(SceUID thread_id, SceKernelThreadInfo *info, const _sceKernelGetThreadInfo_opt *opt)
Gets thread information through the raw user export.
SceUID _sceKernelRegisterThreadEventHandler(const char *name, SceUID thread_id, SceUInt32 mask, const sceKernelRegisterThreadEventHandlerOpt *opt)
Registers a thread event handler through the raw user export.
Definition threadmgr.h:305
Definition threadmgr.h:300
Current state of a mutex.
Definition threadmgr.h:334
Structure to hold the status information for a thread.
Definition threadmgr.h:126
Additional options used when creating threads.
Definition threadmgr.h:110
Definition threadmgr.h:33
Definition threadmgr.h:27
Definition threadmgr.h:39
Definition threadmgr.h:53
SceUIntPtr SceUIntVAddr
Definition types.h:85
int32_t SceInt32
Definition types.h:44
unsigned int SceSize
Definition types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition types.h:90
uint32_t SceUInt32
Definition types.h:45