Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 27 - Utilities Reference / Functions
Idling and Delaying Processing /


OTDelay

Delays processing for a specified number of seconds.

C INTERFACE
void OTDelay(UInt32 seconds)
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
seconds
The number of seconds to delay.
DISCUSSION
The OTDelay function delays processing for the number of seconds specified in the seconds parameter. While the delay is occurring, OTDelay continuously calls the OTIdle function.

You can only call the OTDelay function from within an application at system task time. This function is only provided for compatibility with the UNIX sleep function to assist with portability of UNIX code.

IMPORTANT
You should never call the OTIdle function in production code on a Macintosh computer.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998