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

rwRunnable()

Module:  Threads   Package:  Threading


Global Function

Local Index

No Entries

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 Module, then this function will return an empty runnable handle. If the thread was created by a Threads Module 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 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.