Comments
Patch
@@ -187,7 +187,7 @@ GTM::gtm_transaction::begin_transaction (uint32_t prop, const gtm_jmpbuf *jb)
tx->state = (STATE_SERIAL | STATE_IRREVOCABLE);
else
- disp = tx->decide_begin_dispatch ();
+ disp = tx->decide_begin_dispatch (prop);
if (tx->state & STATE_SERIAL)
{
@@ -218,7 +218,7 @@ struct gtm_transaction
// In retry.cc
void decide_retry_strategy (gtm_restart_reason);
- abi_dispatch* decide_begin_dispatch ();
+ abi_dispatch* decide_begin_dispatch (uint32_t prop);
// In method-serial.cc
void serialirr_mode ();
@@ -77,12 +77,12 @@ GTM::gtm_transaction::decide_retry_strategy (gtm_restart_reason r)
// Decides which TM method should be used on the first attempt to run this
-// transaction, setting this->disp accordingly.
+// transaction.
// serial_lock will not have been acquired if this is the outer-most
// transaction. If the state is set to STATE_SERIAL, the caller will set the
// dispatch.
GTM::abi_dispatch*
-GTM::gtm_transaction::decide_begin_dispatch ()
+GTM::gtm_transaction::decide_begin_dispatch (uint32_t prop)
{
// ??? Probably want some environment variable to choose the default
// STM implementation once we have more than one implemented.