arm4::util::QArmTransactionCountDownOnce Class Reference
[ARM 4.0 Support Classes]

A counting down transaction container for stopping a started when the initialized number of events occured. More...

Inheritance diagram for arm4::util::QArmTransactionCountDownOnce:
arm4::util::QArmTransactionSupportBase

List of all members.

Public Member Functions

 QArmTransactionCountDownOnce (QArmTransaction &tran, size_t events, int32_t status=QArmConstants::STATUS_UNKNOWN, bool destroy=false)
 Initializes an ARM countdown latch which stops a ARM transaction if count drops to zero.
bool countDown ()
 Counts the latchs number of events down by one.

Detailed Description

A counting down transaction container for stopping a started when the initialized number of events occured.

Author:
MyARM GmbH

Constructor & Destructor Documentation

arm4::util::QArmTransactionCountDownOnce::QArmTransactionCountDownOnce ( QArmTransaction tran,
size_t  events,
int32_t  status = QArmConstants::STATUS_UNKNOWN,
bool  destroy = false 
)

Initializes an ARM countdown latch which stops a ARM transaction if count drops to zero.

Note:
This class can only be used once
Parameters:
tran Started ARM transaction to stop on finished()
events Number of events to countdown before stopping (zero is invalid)
status Default transaction status to use on stop call
destroy If true the latch destroy the ARM transaction instance

Member Function Documentation

bool arm4::util::QArmTransactionCountDownOnce::countDown (  ) 

Counts the latchs number of events down by one.

Returns:
true if transaction was stopped otherwise false
Note:
When the count drops to zero associated transaction is stopped

The documentation for this class was generated from the following file: