Module: Threads Package: Threading
Global Function
#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>.
RWTIOUResult<RWCString> res = rwtMakeThreadIOU((RWCString*)0); // is equivalent to: RWTIOUResult<RWCString> res = RWTThreadEscrowImp<RWCString>::make();
template <class Redeemable> inline RWTEscrowHandle<Redeemable> rwtMakeThreadIOU(const Redeemable *r)
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.
RWTEscrowImp<Redeemable>, RWTEscrowHandle<Redeemable>, RWTIOUResult<Redeemable>, RWTIOUEscrow<Redeemable>
© 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.