From 7e6a22e791be6c88392540a437318283f652605b Mon Sep 17 00:00:00 2001 From: Francisco José García García Date: Tue, 6 Sep 2016 10:40:08 +0200 Subject: Add LwCond --- include/user/kernel/threadmgr.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/user/kernel/threadmgr.h') diff --git a/include/user/kernel/threadmgr.h b/include/user/kernel/threadmgr.h index d32b705..aadead1 100644 --- a/include/user/kernel/threadmgr.h +++ b/include/user/kernel/threadmgr.h @@ -1004,6 +1004,21 @@ int sceKernelDeleteLwMutex(SceKernelLwMutexWork *pWork); int sceKernelLockLwMutex(SceKernelLwMutexWork *pWork, int lockCount, unsigned int *pTimeout); int sceKernelUnlockLwMutex(SceKernelLwMutexWork *pWork, int unlockCount); +typedef struct SceKernelLwCondWork { + SceInt64 data[4]; +} SceKernelLwCondWork; + +typedef struct SceKernelLwCondOptParam { + SceSize size; +} SceKernelLwCondOptParam; + +int sceKernelCreateLwCond(SceKernelLwCondWork *pWork, const char *pName, unsigned int attr, SceKernelLwMutexWork *pLwMutex, const SceKernelLwCondOptParam *pOptParam); +int sceKernelDeleteLwCond(SceKernelLwCondWork *pWork); +int sceKernelSignalLwCond(SceKernelLwCondWork *pWork); +int sceKernelWaitLwCond(SceKernelLwCondWork *pWork, unsigned int *pTimeout); + + + /** * Get the system time (wide version) * -- cgit v1.2.3