Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

rwThread


Global Function

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

None

Package

Threading

Summary

Returns an RWThreadSelf object, if any, associated with the current thread.

Declaration

#include <rw/thread/RWRunnableSelf.h>

RWThreadSelf rwThread(void); 

Description

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.h++ 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.h++ thread object.

See Also

RWThreadSelf, RWHandleBase::isValid()



Previous fileTop of DocumentContentsIndexNext file

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