al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
nuScAddClientFormatvoid nuScAddClient(NUScClient *c, OSMesGueue *mq, NUScMsg msgType) Arguments
none What This Function Does It registers Scheduler clients. Retrace and PRE-NMI clients are entered in the Scheduler. When an event occurs, the Scheduler sends a message to the message queues of the registered clients. To remove a client use the nuScRemoveClient function. Example #define MESG_NUM 1 NUScClient client; OSMesgQueue mesgQ; OsMesg mesgBuf[MESG_NUM]; /* initialize message queue */ osCreateMesgQueue(&mesgQ, mesgBuf,MESG_NUM); /* specify retrace event and register */ /* client in Scheduler */ nuScAddClient(&client, &mesgQ, NU_SC_RETRACE_MSG); /* wait for retrace event */ osRecvMesg(&mesgQ, NULL, OS_SC_MESG_BLOCK); /* remove registered client */ nuScRemoveClient(&client);
|