Multithread-safe implementation of RWTEscrowImp. 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) |
Private Member Functions | |
RWTThreadEscrowImp (const RWTThreadEscrowImp &second) | |
RWTThreadEscrowImp & | operator= (const RWTThreadEscrowImp &second) |
Additional Inherited Members | |
Protected Types inherited from RWTCountingBody< RWMutexLock > | |
typedef RWTLockGuard< RWTMonitor< RWMutexLock > > | LockGuard |
typedef RWTTryLockGuard< RWTMonitor< RWMutexLock > > | TryLockGuard |
typedef RWTUnlockGuard< RWTMonitor< RWMutexLock > > | UnlockGuard |
Protected Types inherited from RWTMonitor< RWMutexLock > | |
typedef RWTLockGuard< RWTMonitor< RWMutexLock > > | LockGuard |
typedef RWTTryLockGuard< RWTMonitor< RWMutexLock > > | TryLockGuard |
typedef RWTUnlockGuard< RWTMonitor< RWMutexLock > > | UnlockGuard |
This is a concrete implementation of the RWTEscrowImp 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 and RWTIOUEscrow 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. Returns an RWTEscrowHandle handle that can be used to create an RWTIOUResult or RWTIOUEscrow handle to the newly-created escrow implementation.
|
static |
Creates an RWTThreadEscrowImp and assigns it to an RWTEscrowHandle. The escrow is closed immediately with immediateValue. The returned RWTEscrowHandle can be used to initialize an RWTIOUEscrow or RWTIOUResult. Once the escrow is created it is immediately redeemable.
|
private |
Assignment prohibited.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |