Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Wefts::tag_ThreadAndReturn Struct Reference
[OS Threading Level Abstraction.]

Utility structure to pass around a thread object along with its return. More...

#include <wefts_os_base.h>

List of all members.

Public Attributes

void * thread
void * runReturn


Detailed Description

Utility structure to pass around a thread object along with its return.

As the only function able to know if a thread is detached, and that then can rightfully delete the thread object, is the cancelation cleanup handler, it is also the only function that is able to set the thread run return value member if the thread is NOT detached. To let the cleanup handler have this value, this structure holds a pointer to the thread and a pointer to the run return value (or zero, if the run() method had not a chance to return).

OSThreadBase::osRun() is responsible to fill correctly this value and let the cleanup routine have it.


Member Data Documentation

void* Wefts::tag_ThreadAndReturn::runReturn
 

void* Wefts::tag_ThreadAndReturn::thread
 


The documentation for this struct was generated from the following file:
Generated on Sat Mar 13 21:05:45 2004 for Wefts by doxygen 1.3.5