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