SourcePro® C++ 13.1 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Multithread-safe implementation of RWTEscrowImp<Redeemable>. More...
#include <rw/thread/RWTThreadEscrowImp.h>
Public Types | |
typedef Redeemable | RedeemableType |
Public Types inherited from RWTEscrowImp< Redeemable > | |
typedef Redeemable | RedeemableType |
typedef RWTFunctor< void(RWTEscrowHandle < Redeemable >)> | RWTIOUResultCallback |
Public Member Functions | |
virtual | ~RWTThreadEscrowImp () |
Public Member Functions inherited from RWTEscrowImp< Redeemable > | |
virtual | ~RWTEscrowImp (void) |
void | abort (void) |
bool | aborted (void) const |
void | addCallback (const RWTIOUResultCallback &iouResultCallback) |
void | close (const Redeemable &value) |
bool | closeable (void) const |
bool | closed (void) const |
bool | inError (void) const |
RWTEscrowHandle< Redeemable > | newInstance (void) const |
const Redeemable & | redeem (void) const |
bool | redeemable (void) const |
bool | redeemed (void) const |
void | removeCallback (const RWTIOUResultCallback &iouResultCallback) |
void | setException (const RWTHRxmsg &xmsg) |
Static Public Member Functions | |
static RWTEscrowHandle < Redeemable > | make () |
static RWTEscrowHandle < Redeemable > | make (const Redeemable &immediateValue) |
Protected Member Functions | |
RWTThreadEscrowImp () | |
Protected Member Functions inherited from RWTEscrowImp< Redeemable > | |
RWTEscrowImp (void) | |
Protected Member Functions inherited from RWEscrowImpBase | |
RWEscrowImpBase (void) | |
virtual | ~RWEscrowImpBase (void) |
Protected Member Functions inherited from RWBodyBase | |
RWBodyBase (void) | |
RWBodyBase (RWStaticCtor) | |
RWBodyBase (const RWBodyBase &second) | |
virtual | ~RWBodyBase (void) |
RWBodyBase & | operator= (const RWBodyBase &second) |
Protected Member Functions inherited from RWTCountingBody< RWMutexLock > | |
~RWTCountingBody (void) | |
unsigned | addReference (void) |
unsigned | references (void) const |
unsigned | removeReference (void) |
RWTCountingBody (unsigned initCount=0) | |
RWTCountingBody (RWStaticCtor) | |
RWTCountingBody (const RWTCountingBody< RWMutexLock > &second) | |
RWTCountingBody< RWMutexLock > & | operator= (const RWTCountingBody< RWMutexLock > &second) |
Private Member Functions | |
RWTThreadEscrowImp (const RWTThreadEscrowImp &second) | |
RWTThreadEscrowImp & | operator= (const RWTThreadEscrowImp &second) |
Additional Inherited Members |
This is a concrete implementation of the RWTEscrowImp<Redeemable> class. It is multithread-safe and uses condition variables to communicate between threads.
This class should not be used directly. It is intended to be used through the RWTIOUResult<Redeemable> and RWTIOUEscrow<Redeemable> interfaces. However, you may wish to use the static make() functions provided by this class to construct an escrow instance.
typedef Redeemable RWTThreadEscrowImp< Redeemable >::RedeemableType |
Public typedef.
|
virtual |
Virtual destructor.
|
protected |
The constructor for this class is protected. You must use the static make() members to create instances.
|
private |
Copy construction prohibited.
|
static |
Creates a new RWTThreadEscrowImp<Redeemable> . Returns an RWTEscrowHandle<Redeemable> handle that can be used to create an RWTIOUResult<Redeemable> or RWTIOUEscrow<Redeemable> handle to the newly-created escrow implementation.
|
static |
Creates an RWTThreadEscrowImp<Redeemable> and assigns it to an RWTEscrowHandle<Redeemable> . The escrow is closed immediately with immediateValue. The returned RWTEscrowHandle<Redeemable> can be used to initialize an RWTIOUEscrow<Redeemable> or RWTIOUResult<Redeemable> . Once the escrow is created it is immediately redeemable.
|
private |
Assignment prohibited.
Copyright © 2015 Rogue Wave Software, Inc. All Rights Reserved. |