gtpc2m8o | C/C++ Language Support User's Guide |
This function gets the unique token for the current transaction.
Format
include <c$tmcr.h> double tpf_tm_getToken(void);
Normal Return
The tpf_tm_getToken function returns one of the following:
Error Return
Not applicable.
Programming Considerations
None.
Examples
The following example gets the unique token for the current transaction.
#include <c$tmcr.h> test_pgm(void) { double token; tx_begin(); tx_suspend_tpf(); token = tpf_tm_getToken(); /* token should be zero */ /* no active transaction */ tx_resume_tpf(); token = tpf_tm_getToken(); /* returns the transaction token */ /* for the current transaction */ tx_commit(); return; }
Related Information