vitasdk
Documentation of the vitasdk
threadmgr.h
Go to the documentation of this file.
1
7#ifndef _PSP2KERN_KERNEL_THREADMGR_H_
8#define _PSP2KERN_KERNEL_THREADMGR_H_
9
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
39
52
62int ksceKernelClearEvent(SceUID event_id, SceUInt32 clear_pattern);
63
73
82
93SceUID ksceKernelRegisterTimer(const char *name, SceUInt32 delay, SceKernelTimerFunction function, SceInt32 common);
94
103
112
124int ksceKernelWaitEvent(SceUID event_id, SceUInt32 wait_pattern, SceUInt32 *result_pattern, SceUInt64 *user_data, SceUInt32 *timeout);
125
126#ifdef __cplusplus
127}
128#endif
129
130#endif /* _PSP2KERN_KERNEL_THREADMGR_H_ */
void * user_data
Definition lsdb.h:7
int ksceKernelStartTimer(SceUID timer_id)
Starts a timer.
SceInt32(* SceKernelTimerFunction)(SceInt32 common)
Kernel timer callback.
Definition threadmgr.h:38
SceUInt64 ksceKernelGetTimerTimeWide(SceUID timer_id)
Gets a timer's current time.
int ksceKernelClearEvent(SceUID event_id, SceUInt32 clear_pattern)
Clears event bits by ANDing the current pattern with the supplied pattern.
int ksceKernelWaitEvent(SceUID event_id, SceUInt32 wait_pattern, SceUInt32 *result_pattern, SceUInt64 *user_data, SceUInt32 *timeout)
Waits for an event pattern without running thread callbacks.
SceUID ksceKernelRegisterTimer(const char *name, SceUInt32 delay, SceKernelTimerFunction function, SceInt32 common)
Creates and immediately schedules a kernel alarm callback.
SceInt32 ksceKernelChangeThreadCpuAffinityMask(SceUID thread_id, SceInt32 cpu_affinity_mask)
Changes a thread's CPU affinity mask.
SceUInt64 ksceKernelGetTimerBaseWide(SceUID timer_id)
Gets the time from which a timer is measured.
int ksceKernelStopTimer(SceUID timer_id)
Stops a timer.
int32_t SceInt32
Definition types.h:44
int SceUID
UIDs are used to describe many different kernel objects.
Definition types.h:90
uint64_t SceUInt64
Definition types.h:51
uint32_t SceUInt32
Definition types.h:45