Overview | Supports debugging by returning a string describing the transaction associated with the target object. |
Original interface | CosTransactions::Coordinator Interface |
Intended Usage
Returns a printable string describing the transaction. If there is no transaction associated with the current thread, an empty string is returned.
Syntax
string get_transaction_name();
Input parameters
None.
Return values
Examples
The following examples demonstrate the usage of CosTransactions::Coordinator::get_transaction_name.
C++ Example
CosTransactions::Coordinator *coord; string name; name = coord->get_transaction_name(); cout << "Transaction name is " << name << endl;