Important: The information in this document is obsolete and should not be used for new development.
OTEnterInterrupt
Notifies Open Transport that you are about to call an Open Transport function from a hardware interrupt.C INTERFACE
void OTEnterInterrupt(void)C++ INTERFACE
None. C++ applications use the C interface to this function.DISCUSSION
TheOTEnterInterruptfunction informs Open Transport it is at hardware interrupt time. This allows Open Transport to schedule network activity more intelligently. You must use this function before calling many of the Open Transport functions from hardware interrupt time, for example, from a VBL or Time Manager task, or from a File Manager or Device Manager I/O completion routine. There are only a limited number of Open Transport functions that you can actually call at hardware interrupt time; these are listed in Appendix C.You must call the
OTLeaveInterruptfunction before you leave interrupt time.
- Note
- The
OTEnterInterruptfunction was provided to enable callers of theOTScheduleDeferredTaskfunction a means to let Open Transport know that the scheduling was occurring at interrupt time. With the addition of theOTScheduleInterruptTaskfunction (which callsOTEnterInterruptinternally), it is no longer necessary to call theOTEnterInterruptfunction. There are cases, however, when it might be advisable to call theOTEnterInterruptandOTScheduleDeferredTaskfunctions in sequence; for example, when you want to schedule two deferred tasks consecutively, or when you are calling a common function which usesOTScheduleDeferredTaskand which is sometimes called at interrupt time and sometimes not.![]()
SPECIAL CONSIDERATIONS
If you are running 680x0-based code, you must be sure that your A5 world is set correctly before making this call (that is, that it has the same value it had when you called theInitOpenTransportor theInitOpenTransportUtilitiesfunction).SEE ALSO
TheOTLeaveInterruptfunction.