rwlogo
SourcePro 11.1

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

rwtMakeThreadIOU Macros and Functions
[Threading]

Functions

template<class Redeemable >
RWTEscrowHandle< Redeemable > rwtMakeThreadIOU (const Redeemable *r)

Detailed Description

Header File

#include <rw/thread/rwtMakeThreadIOU.h>

Helper function for creating thread safe escrow implementations. The result of the function can be used to initialize an RWTIOUResult<Redeemable> or an RWTIOUEscrow<Redeemable>.

Examples

 RWTIOUResult<RWCString> res = rwtMakeThreadIOU((RWCString*)0);
 
 // is equivalent to:
 
 RWTIOUResult<RWCString> res = RWTThreadEscrowImp<RWCString>::make();
See also:
RWTEscrowImp<Redeemable>, RWTEscrowHandle<Redeemable>, RWTIOUResult<Redeemable>, RWTIOUEscrow<Redeemable>

Function Documentation

template<class Redeemable >
RWTEscrowHandle<Redeemable> rwtMakeThreadIOU ( const Redeemable *  r  )  [inline]

Creates an RWTEscrowHandle<Redeemable>. A pointer to the redeemable type is passed in order for the template function to ascertain the Redeemable template argument type. This allows the function to create a threaded escrow implementation of the proper type.


© 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.