DTInstall
DTInstall Add a task to the deferred task queue QElemPtr dtTaskPtr ; address of a task for loading into the queue DTInstall adds a task identified by a pointer to the deferred task queue. dtTaskPtr is a pointer leading to data to be en queued.
vTypeErr (-2) Invalid queue element
Notes: DTInstall adds a lengthy task to a deferred task queue so that it can be executed when all interrupts at the current interrupt level have been
serviced. These tasks are executed with interrupts enabled, but are subject
to the same restrictions regarding moving memory and preserving
registers as interrupt routines. The QElemPtr referenced by the dtTaskPtr points to a DeferredTask record, which itself contains a pointer to the task you want to add to the queue.
Most of the long tasks for which this call is best suited are initiated by
add-in cards. You would generally need this call, therefore, only if your
program has to deal with these kinds of interrupts.