Important: The information in this document is obsolete and should not be used for new development.
Index
A
A/UX, modifying code segments under A0 register and the Vertical Retrace Manager A1 register and the Time Manager [1] [2] and the Deferred Task Manager A5 register setting in interrupt tasks setting in Notification Manager response procedures setting in Time Manager tasks [1] [2] setting in VBL tasks [1] A5 world and context switches and the Notification Manager and the Time Manager [1] and the Vertical Retrace Manager [1] [2] how the Process Manager creates acceptAppDied constant active application AECreateAppleEvent function, creating a Shutdown or Restart event with AECreateDesc function, specifying address of the Finder AEDisposeDesc function, disposing of Finder address AESend function, sending a Shutdown or Restart event with alert boxes, displayed by Notification Manager alert notifications allocating or moving memory, in interrupt tasks Apple events Application Died disposing of sent event MultiFinder cannot send procedure for sending Quit Application Restart [1] [2] Shutdown [1] [2] Apple menu, blinking icon and Application Died Apple event [1] [2] application heap Application menu blinking icon in diamond-shaped mark in application parameters record [1] application partitions. See partitions application stack applications closing before shutdown launching [1] terminating [1] AppParameters data type [1] AttachVBL function [1] audible notificationsB
background applications, making notification requests background processes background tasks, making notification requests background-only application blinking icon in menu barC
canBackground flag 'CODE' resource type [1] [2] code segments. See segments code, self-modifying context of a process and interrupt tasks defined switching Control function, called by ShutDwnPower cooperative multitasking environment [1] CrsrBusy global variable CurJTOffset global variable current process [1] [2] CurrentA5 global variable cursors animation with VBL tasks [1] jerky movement updating of position custom shutdown procedures. See shutdown proceduresD
_Debugger trap default directory, set by LaunchApplication Deferred Task Manager [1] and the A1 register application-defined routines in [1] data structures in [1] defining a deferred task [1] routines in [1] types of tasks useful for deferred task queues [1] deferred task record [1] deferred tasks delayed execution desk accessories checking for open accessories before shutdown launching desk scrap, saving before shutdown desktop device drivers, making notification requests Device Manager Control function called by ShutDwnPower unit table checked by ShutDwnPower dialog boxes, movable modal diamond-shaped mark in Application menu disabled interrupts disk access, delaying VBL tasks disk-inserted events, posting of DoVBLTask function [1] drift-free, fixed-frequency timing services drivers checking for open drivers before shutdown reasons for using shutdown procedures sending good-bye message to when closed during shutdown process DTInstall function [1] DTQueue global variableE
Eject function, called by ShutDwnPower elapsed times, computing [1] [2] EventAvail function [1] [2] events .See also Apple events resume [1] [2] suspend [1] [2] exceptions ExitToShell procedure patching to remove VBL tasks using to terminate applications [1] [2] external referenceF
File Manager, unmounting volumes with during shutdown Finder sending Shutdown or Restart event to fixed-frequency timing services drift-free drifting foreground process calling Notification Manager defined future execution, scheduling routines forG
Gestalt function testing for Notification Manager availability testing for Process Manager availability [1] testing for Time Manager version GetCurrentProcess function [1] [2] [3] [4] GetFrontProcess function [1] [2] GetNextEvent function GetNextProcess function [1] [2] GetProcessInformation function [1] GetVBLQHdr function [1] global variables accessing from VBL tasks [1] embedding in VBL task records in deferred tasks in Time Manager tasks [1] good-bye message defined requested by driver sent to indicate shutdown sent when application quits grow-zone functions, in a locked segmentI
'INIT' resource type, making notification requests initialization routines, in an unloadable segment InsTime procedure [1] [2] InsXTime procedure [1] [2] interrupt handlers interrupt latency interrupt priority levels [1] [2] interrupt tables interrupt tasks accessing global variables [1] allocating or moving memory and application context and the A5 world and virtual memory calling routines in other segments executing when interrupts are enabled [1] guidelines for using [1] in a locked segment preserving registers scheduling of [1] side effects of lengthy tasks unloading code segments using locked handles interrupt vectors interrupts interrupts, VBL. See vertical retrace interrupts inVBL global constant isHighLevelEventAware flagJ
jDoVBLTask global variable jDTInstall global variable jump table entries defined for loaded segments for unloaded segments jump tables [1] [2]K
keyboards, resetting ofL
launch parameter block [1] [2] _Launch trap macro LaunchApplication function [1] LaunchDeskAccessory function [1] [2] launching applications [1] desk accessories options LaunchParamBlockRec data type [1] [2] loading segments _LoadSeg trap LoadTrap global variable locked handles, using in interrupt tasksM
main event loop, in the main segment main segment major switches menu bar, blinking icon in minor switches mouse-down events, posting of mouse-up events, posting of 'mst#' resource type, use with Quit command 'mstr' resource type, use with Quit command MultiFinder [1] [2] multitasking environment [1]N
NMInstall function [1] NMRec data type [1] NMRemove function [1] Notification Manager [1] application-defined routines in [1] multiple requests response procedures [1] [2] routines in [1] suggested notification strategy testing for availability types of notifications [1] use by foreground applications notification queue defined installing entries in [1] removing entries from [1] notification records defined setting up [1] notification requests creating [1] installing [1] removing [1] notification response procedures [1] [2] notifications defined types of [1] null eventsO
onlyBackground flag [1] [2] open applications avoiding abrupt termination of [1] [2] procedure for closing OpenDeskAcc function [1] [2] opening. See launching Operating System, installing VBL tasks operating-system queuesP
partitions created by Process Manager defined finding the available free memory in periodic execution, scheduling routines for [1] [2] [3] persistent VBL tasks polite notifications primary video device changing [1] prime PrimeTime procedure [1] [2] introduced with extended Time Manager [1] with global variables [1] with periodic tasks [1] with revised Time Manager process information record [1] [2] Process Manager [1] closing open applications with during shutdown constants in [1] context switches creating processes data structures in [1] defined getting information about processes [1] launching applications [1] [2] launching desk accessories [1] routines in [1] scheduling processes [1] [2] terminating processes [1] testing for availability [1] process serial numbers [1] [2] [3] processes background constants used to identify [1] context of creating current [1] [2] foreground getting information about [1] scheduling [1] [2] terminating [1] ProcessInfoRec data type [1] processor priority [1] [2] ProcessSerialNumber data type [1]Q
queues notification. See notification queue Time Manager [1] [2] Quit Application event Quit command (File menu)R
registers, preserving in interrupt tasks resource types 'CODE' [1] [2] 'INIT' 'mst#' 'mstr' 'SIZE' [1] [2] 'snd ' response procedures, of Notification Manager Restart command (Special menu) Restart event [1] [2] restart steps. See shutdown steps resume events [1] [2] RmvTime procedure [1] introduced using to compute elapsed times [1]S
SameProcess function [1] [2] scheduling of processes by the Process Manager routines for future execution setting options switching contexts Scrap Manager, saving the desk scrap with during shutdown ScrnVBLPtr global variable SegHiEnable global variable segment headers Segment Loader. See Segment Manager Segment Manager [1] routine in [1] using to load segments using to unload segments segments defined guidelines for creating loading self-modifying unloading self-modifying code servicing interrupts SetA5 function [1] [2] SetCurrentA5 function [1] [2] SetCursor procedure, calling at interrupt time SetFrontProcess function [1] Shut Down command (Special menu) Shutdown event [1] [2] Shutdown Manager [1] application-defined routines in [1] constants for installing a shutdown procedure [1] methods for turning off computer removing a shutdown procedure [1] routines in [1] sending Apple events to Finder shutdown steps [1] shutdown procedures [1] flags for specifying execution times [1] [2] installing [1] installing in system heap [1] [2] introduced problems with applications using removing [1] [2] when removed from shutdown queue shutdown queue [1] [2] shutdown steps checking for custom procedures checking for open drivers closing open applications before saving the desk scrap unmounting volumes ShutDwnInstall procedure [1] [2] ShutDwnPower procedure [1] called by Finder [1] [2] calls Device Manager Control function problems with direct calls to ShutDwnRemove procedure [1] [2] ShutDwnStart procedure [1] called by Finder [1] [2] problems with direct calls to 'SIZE' resource type setting termination flags specifying partition size slot number of primary video device changing slot-based VBL tasks. See VBL tasks, slot-based SlotVInstall function [1] persistent SlotVRemove function [1] 'snd ' resource type sounds, as notification spinning cursors [1] stack stack sniffer suspend events [1] [2] switching process contexts synchronizing actions system alarm, making notification requests system alert sounds system extensions, using shutdown procedures system-based VBL tasks. See VBL tasks, system-basedT
tasks. See interrupt tasks terminating applications [1] Ticks global variable, updating of time delays microseconds [1] milliseconds Time Manager [1] application-defined routines in [1] data structures in [1] delays extended [1] original [1] queues. See Time Manager queues revised [1] routines in [1] task records. See Time Manager task records tasks. See Time Manager tasks testing for version Time Manager queues [1] [2] Time Manager task records extended original and revised Time Manager tasks activating [1] [2] installing [1] [2] making notification requests periodic [1] reactivating removing structure of records [1] [2] using global variables in [1] TMTask data type turning off the computer, methods for [1]U
unloading code segments UnloadScrap function UnloadSeg procedure unmounting volumes, during shutdown process UnmountVol function, called by ShutDwnPowerV
VBL task records A0 register accessing at interrupt time defined [1] embedding in other records VBL tasks accessing global variables [1] and application execution [1] and process termination and virtual memory causing system crashes defined disabled by the Process Manager disabling during a suspend event enabling during a resume event executing immediately execution order installing [1] [2] limitations on [1] making notification requests missing vertical retrace interrupts persistent defined installing [1] reenabled by the Process Manager scheduling slot-based defined installing [1] removing [1] stopping synchronizing with screen system-based defined installing [1] removing [1] timing of [1] turning off debugging code for types of [1] VBLQueue global variable VBLTask data type [1] vector tables vertical blanking interrupts vertical retrace interrupts Vertical Retrace Manager [1] application-defined routines in [1] data structures in [1] installing VBL tasks [1] [2] routines in [1] vertical retrace queues defined getting headers of [1] number of VInstall function [1] introduced using instead of SlotVInstall virtual memory, and interrupt tasks volumes, unmounting during shutdown process VRemove function [1]W
WaitNextEvent function [1] [2] [3] WakeUpProcess function [1] [2]