vitasdk
Documentation of the vitasdk
corelock.h
Go to the documentation of this file.
1
7
#ifndef _PSP2KERN_KERNEL_CPU_CORELOCK_H_
8
#define _PSP2KERN_KERNEL_CPU_CORELOCK_H_
9
10
#include <
vitasdk/build_utils.h
>
11
#include <
psp2kern/types.h
>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
18
typedef
struct
SceCorelockContext
{
19
int
lock
;
20
int16_t
core_count
;
21
int16_t
last_wait_core
;
22
}
SceCorelockContext
;
23
VITASDK_BUILD_ASSERT_EQ
(8,
SceCorelockContext
);
24
25
void
ksceKernelCorelockInitialize
(
SceCorelockContext
*ctx);
26
27
void
ksceKernelCorelockLock
(
SceCorelockContext
*ctx,
SceUInt32
core);
28
void
ksceKernelCorelockUnlock
(
SceCorelockContext
*ctx);
29
30
31
#ifdef __cplusplus
32
}
33
#endif
34
35
#endif
/* _PSP2KERN_KERNEL_CPU_CORELOCK_H_ */
build_utils.h
SceCorelockContext::lock
int lock
Definition:
corelock.h:19
VITASDK_BUILD_ASSERT_EQ
VITASDK_BUILD_ASSERT_EQ(8, SceCorelockContext)
ksceKernelCorelockUnlock
void ksceKernelCorelockUnlock(SceCorelockContext *ctx)
SceCorelockContext::last_wait_core
int16_t last_wait_core
Definition:
corelock.h:21
ksceKernelCorelockInitialize
void ksceKernelCorelockInitialize(SceCorelockContext *ctx)
ksceKernelCorelockLock
void ksceKernelCorelockLock(SceCorelockContext *ctx, SceUInt32 core)
SceCorelockContext::core_count
int16_t core_count
Definition:
corelock.h:20
SceCorelockContext
Definition:
corelock.h:18
SceUInt32
uint32_t SceUInt32
Definition:
types.h:45
types.h
include
psp2kern
kernel
cpu
corelock.h
Vita SDK