pspnosync.c

来自「db.* (pronounced dee-be star) is an adva」· C语言 代码 · 共 132 行

C
132
字号
#include "psp.h"#include "pspint.h"/* ==========================================================================   Initialize synchronization functions*/int psp_syncInit(    void){    return PSP_OKAY;}/* ==========================================================================   Shutdown synchronization functions*/void psp_syncShutdown(    void){}/* ==========================================================================   Cleanup synchronization functions*/void psp_syncTerm(    void){}/* ==========================================================================    Create a synchronization object*/PSP_SEM psp_syncCreate(    short type){    return (PSP_SEM)1;}/* ==========================================================================    Delete a synchronization object*/void psp_syncDelete(    PSP_SEM sem){}/* ==========================================================================    Obtain exclusive access to a mutex*/void psp_syncEnterExcl(    PSP_SEM sem){}/* ==========================================================================    Release exclusive access to a mutex*/void psp_syncExitExcl(    PSP_SEM sem){}/* ==========================================================================    Wait for an event*/short psp_syncWait(    PSP_SEM sem,    long    timeout){    return PSP_OKAY;}/* ==========================================================================    Set an event to the unsignalled state*/void psp_syncStart(    PSP_SEM sem){}/* ==========================================================================    Set an event to the signalled state*/void psp_syncResume(    PSP_SEM sem){}/* ==========================================================================    Get exclusive access to the global mutex*/void psp_enterCritSec(    void){}/* ==========================================================================    Release exclusive access to the global mutex*/void psp_exitCritSec(    void){}/* ==========================================================================    Create a thread*/short psp_threadBegin(    void       (*fcn)(void *),    unsigned int stacksize,    void        *arg){    return PSP_FAILED;}/* ==========================================================================    End a thread*/void psp_threadEnd(    void){}/* ==========================================================================    Return the id of the current thread*/psp_thread_t psp_threadId(    void){    return (psp_thread_t)0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?