Important: The information in this document is obsolete and should not be used for new development.
WakeUpProcess
Use theWakeUpProcessfunction to make a process suspended byWaitNextEventeligible to receive CPU time.
FUNCTION WakeUpProcess (PSN: ProcessSerialNumber): OSErr;
PSN- The process serial number of the process to be made eligible. This number should be a valid process serial number returned from
LaunchApplication,GetNextProcess,GetFrontProcess,GetCurrentProcess, or a high-level event. You can also use the constantkCurrentProcessto refer to the current process.DESCRIPTION
TheWakeUpProcessfunction makes a process suspended byWaitNextEventeligible to receive CPU time. A process is suspended when the value of thesleepparameter in theWaitNextEventfunction is not 0 and no events for that process are pending in the event queue. This process remains suspended until the time specified in thesleepparameter expires or an event becomes available for that process. You can useWakeUpProcessto make the process eligible for execution before the time specified in thesleepparameter expires.The
WakeUpProcessfunction does not change the order of the processes scheduled for execution; it only makes the specified process eligible for execution.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theWakeUpProcessfunction are
Trap macro Selector _OSDispatch $003C RESULT CODES
noErr 0 No error procNotFound -600 Suspended process with specified process serial number doesn't exist