Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Sleep Functions

Detailed Description

The sleep functions phSleep and phMSleep are always going to sleep for the precise value they are given. phUSleep hasn't been very portable across systems and may just yield the processor time when microseconds is less than 1 milliseconds.

Sleeping within the Phission system is kept to a minimum as it is seen as bad practice to throttle a loop with a sleep function call. Instead, blocking mechanisms and strategies should be taken to stop loops until some condition is met; as opposed to looping, checking some value, sleeping and looping again.


void phSleep (uint32_t seconds)
void phMSleep (uint32_t milliseconds)
void phUSleep (uint32_t microseconds)

Copyright (C) 2002 - 2007 Philip D.S. Thoren ( )
University Of Massachusetts at Lowell
Robotics Lab Logo

Generated on Sat Jun 16 02:45:28 2007 for phission by  doxygen 1.4.4