Module: Threads Package: Threading
Global Function
Puts the calling thread to sleep for a specified time period.
#include <rw/thread/RWRunnableSelf.h> void rwSleep(unsigned long milliseconds);
Use this function to put the calling thread to sleep for the specified number of milliseconds (thousandths of a second). Calling this function from within a thread created using the Threads Module will not change the execution state of any runnable associated with that thread. To cause the thread to register a runnable state change for the sleep operation, use the RWRunnableSelf::sleep() member function of the current runnable.
RWRunnableSelf::sleep
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.