Overview | Returns a hash value based on the transaction associated with the target object. |
Original interface | CosTransactions::Coordinator Interface |
Intended Usage
Each transaction has a single hash value although multiple transactions may share the same value. Hash values for transactions should be uniformly distributed.
Syntax
unsigned long hash_transaction();
Input parameters
None.
Return values
Examples
The following examples demonstrate the usage of CosTransactions::Coordinator::hash_transaction.
C++ Example
CosTransactions::Coordinator *coord; unsigned long hashval; hashval = coord->hash_transaction();