EventRecord theEvent;   (void) WaitNextEvent(nullEvent, &theEvent, 1, NULL);
WaitOnIdleSemaphore(timeout);
void _MD_PauseCPU(PRIntervalTime timeout){    if (timeout != PR_INTERVAL_NO_WAIT)    {        EventRecord theEvent;	         /*            ** Calling WaitNextEvent() here is suboptimal. This routine should            ** pause the process until IO or the timeout occur, yielding time to            ** other processes on operating systems that require this (Mac OS classic).            ** WaitNextEvent() may incur too much latency, and has other problems,            ** such as the potential to drop suspend/resume events, and to handle            ** AppleEvents at a time at which we're not prepared to handle them.         */        (void) WaitNextEvent(nullEvent, &theEvent, 1, NULL);	           (void) _MD_IOInterrupt();    }}