Overview | Determines whether the target object and the parameter object both refer to the same transaction. |
Original interface | CosTransactions::Coordinator Interface |
Intended Usage
Determines whether the target object and the parameter object both refer to the same transaction.
Syntax
boolean is_same_transaction(in Coordinator tc);
Input parameters
Return values
Examples
The following examples demonstrate the usage of CosTransactions::Coordinator::is_same_transaction.
C++ Example
/* C++ example */ CosTransactions::Coordinator *c1, *c2; if( c1->is_same_transaction(c2) ) { cout << "c1 represents the same transaction as c2" << endl; } else { cout << "c1 does not represent the same transaction as c2" << endl; }