package kernel import "core:c" import sce "../common" foreign import threadmgr "system:SceThreadmgrForDriver_stub" foreign threadmgr { ksceKernelInitializeFastMutex :: proc(fast_mutex: ^SceKernelFastMutex, name: cstring, attr: c.int, opt: rawptr) -> c.int --- ksceKernelFinalizeFastMutex :: proc(fast_mutex: ^SceKernelFastMutex) -> c.int --- ksceKernelLockFastMutex :: proc(fast_mutex: ^SceKernelFastMutex) -> c.int --- ksceKernelTryLockFastMutex :: proc(fast_mutex: ^SceKernelFastMutex) -> c.int --- ksceKernelUnlockFastMutex :: proc(fast_mutex: ^SceKernelFastMutex) -> c.int --- ksceKernelGetFastMutexInfo :: proc(fast_mutex: ^SceKernelFastMutex, info: rawptr) -> c.int --- } /* backward compatibility */ ksceKernelDeleteFastMutex :: ksceKernelFinalizeFastMutex