RetroArch/gx/sdk_defines.h

30 lines
876 B
C
Raw Normal View History

2014-06-04 16:56:54 +00:00
#ifndef _GX_SDK_DEFINES_H
#define _GX_SDK_DEFINES_H
#ifdef GEKKO
#ifndef OSInitMutex
#define OSThread lwp_t
#define OSCond lwpq_t
#define OSThreadQueue lwpq_t
#define OSInitMutex(mutex) LWP_MutexInit(mutex, 0)
2014-06-07 01:12:58 +00:00
#define OSLockMutex(mutex) LWP_MutexLock(mutex)
#define OSUnlockMutex(mutex) LWP_MutexUnlock(mutex)
#define OSTryLockMutex(mutex) LWP_MutexTryLock(mutex)
2014-06-04 16:56:54 +00:00
#define OSInitCond(cond) LWP_CondInit(cond)
#define OSSignalCond(cond) LWP_ThreadSignal(cond)
2014-06-07 01:12:58 +00:00
#define OSWaitCond(cond, mutex) LWP_CondWait(cond, mutex)
2014-06-04 16:56:54 +00:00
#define OSInitThreadQueue(queue) LWP_InitQueue(queue)
#define OSSleepThread(queue) LWP_ThreadSleep(queue)
2014-06-07 01:12:58 +00:00
#define OSJoinThread(thread, val) LWP_JoinThread(thread, val)
2014-06-04 16:56:54 +00:00
#define OSCreateThread(thread, func, intarg, ptrarg, stackbase, stacksize, priority, attrs) LWP_CreateThread(thread, func, ptrarg, stackbase, stacksize, priority)
#endif
#endif
#endif