mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-27 05:05:51 +00:00
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
#ifndef _GX_SDK_DEFINES_H
|
|
#define _GX_SDK_DEFINES_H
|
|
|
|
#ifdef GEKKO
|
|
|
|
#define OSThread lwp_t
|
|
#define OSCond lwpq_t
|
|
#define OSThreadQueue lwpq_t
|
|
|
|
#define OSInitMutex(mutex) LWP_MutexInit(mutex, 0)
|
|
#define OSLockMutex(mutex) LWP_MutexLock(mutex)
|
|
#define OSUnlockMutex(mutex) LWP_MutexUnlock(mutex)
|
|
#define OSTryLockMutex(mutex) LWP_MutexTryLock(mutex)
|
|
|
|
#define OSInitCond(cond) LWP_CondInit(cond)
|
|
#define OSSignalCond(cond) LWP_ThreadSignal(cond)
|
|
#define OSWaitCond(cond, mutex) LWP_CondWait(cond, mutex)
|
|
|
|
#define OSInitThreadQueue(queue) LWP_InitQueue(queue)
|
|
#define OSSleepThread(queue) LWP_ThreadSleep(queue)
|
|
#define OSJoinThread(thread, val) LWP_JoinThread(thread, val)
|
|
|
|
#define OSCreateThread(thread, func, intarg, ptrarg, stackbase, stacksize, priority, attrs) LWP_CreateThread(thread, func, ptrarg, stackbase, stacksize, priority)
|
|
|
|
#define VISetPostRetraceCallback(cb) VIDEO_SetPostRetraceCallback(cb)
|
|
#define VISetBlack(black) VIDEO_SetBlack(black)
|
|
#define VIFlush() VIDEO_Flush()
|
|
#define VISetNextFrameBuffer(fb) VIDEO_SetNextFramebuffer(fb)
|
|
#define VIWaitForRetrace() VIDEO_WaitVSync()
|
|
#define VIConfigure(rm) VIDEO_Configure(rm)
|
|
#define VIInit() VIDEO_Init()
|
|
#define VIPadFrameBufferWidth(width) VIDEO_PadFramebufferWidth(width)
|
|
|
|
#endif
|
|
|
|
#endif
|