Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Threads Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwSleep()

Module:  Threads   Package:  Threading


Global Function

Local Index

No Entries

Summary

Puts the calling thread to sleep for a specified time period.

Declaration

#include <rw/thread/RWRunnableSelf.h>

void rwSleep(unsigned long milliseconds); 

Description

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.

See Also

RWRunnableSelf::sleep



Previous fileTop of DocumentContentsIndex pageNext file

© 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.