Module: Threads Package: Threading
Global Function
Returns an RWThreadSelf object, if any, associated with the current thread.
#include <rw/thread/RWRunnableSelf.h> RWThreadSelf rwThread();
This function returns the internal thread handle, of type RWThreadSelf, associated with the current thread (if any). It will return an empty RWThreadSelf handle if the current thread was not started by a Threads Module threaded runnable object. The returned thread handle should be tested for validity, by using the isValid() member, if the code calling the function does not know that it is running in a thread started by a Threads Module thread object.
RWThreadSelf, RWHandleBase::isValid()
© 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.