Scheduler - IIgs Toolbox Reference Index Housekeeping Routines SchBootInit SchStartUp SchShutDown SchVersion SchReset SchStatus Scheduler Queue Routines SchAddTask SchFlush _________________________________________________________________ $0107 SchBootInit Initializes the Scheduler; called only by the Tool Locator when the Scheduler is loaded. Warning An application must never make this call. Parameters There are no input or output parameters. Errors None C You shouldn't call this function. _________________________________________________________________ $0207 SchStartUp Starts up the Scheduler; you must call this before using any other Scheduler calls. Parameters There are no input or output parameters. Errors None C extern pascal void SchStartUp(void) _________________________________________________________________ $0307 SchShutDown Shuts down the Scheduler; if you called SchStartUp, you must call this before your program exits. Parameters There are no input or output parameters. Errors None C extern pascal void SchShutDown(void) _________________________________________________________________ $0407 SchVersion Returns the version number of the Scheduler. Parameters Input: wordspace Word -- Space for result Output: versionInfo Word -- Version number of Scheduler. Errors None C extern pascal Word SchVersion(void) _________________________________________________________________ $0507 SchReset Resets the Scheduler. The Tool Locator calls this when the system is reset; you should never issue this call. Warning An application must never make this call. Parameters There are no input or output parameters. Errors None C You shouldn't call this function. _________________________________________________________________ $0907 SchStatus Indicates whether or not the Scheduler is active. Parameters Input: wordspace Word -- Space for result Output: status Word -- TRUE if Scheduler is active, FALSE if not. Errors None C extern pascal Word SchStatus(void) _________________________________________________________________ $0607 SchAddTask Adds a task to the Scheduler queue. There's room for up to four items at a time, which is enough to keep the Desk Manager happy and support other interrupt handlers as well. If the task can't be added to the queue because the queue is full, SchAddTask returns FALSE. The Scheduler calls the procedure pointed to by taskPtr with a JSL. This occurs the next time the system busy flag is decremented to zero. Parameters Input: wordspace Word -- Space for result taskPtr Long -- Pointer to task to add Output: onQueueFlag Word -- TRUE if task added, FALSE if not. Errors None C extern pascal Word SchAddTask(VoidProcPtr taskPtr) _________________________________________________________________ $0A07 SchFlush Flushes all tasks in the Scheduler's queue. Warning An application must never make this call. Parameters There are no input or output parameters. Errors None C You shouldn't call this function. ______________________________________________________________________________ This text file is freely available public domain information. As such...It may be duplicated or reprinted, in whole or in part, without the express written permission of anybody.