Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

rwRunnable


Global Function

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

None

Package

Threading

Declaration

#include <rw/thread/RWRunnableSelf.h>

RWRunnableSelf
rwRunnable();

Description

Retrieves an RWRunnableSelf handle for the current runnable object associated with the calling thread. If the calling thread was created by some means other than those provided by the Threads.h++ library, then this function will return an empty runnable handle. If the thread was created by a Threads.h++ runnable class, then the runnable returned will be the current, inner-most nested runnable. If the code calling this function cannot be sure of the source of the calling thread, then it should test the validity of the returned handle, before using it, by testing the result of a call to the isValid() member of the handle.

See Also

RWRunnableSelf, RWRunnableHandle::isValid()



Previous fileTop of DocumentContentsIndexNext file

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