Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

rwSleep


Global Function

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

None

Package

Threading

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 Threads.h++ will not change the execution state of any runnable associated with that thread. To cause the Threads.h++ 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 DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.