stm/ConflictDetector.h
bool tryCommit()
        {
            // if we have writes, then return true only if we can increment the
            // counter from the last value we observed.
            if (didRW)
                return bool_cas(&global_counter,
                                cached_counter, cached_counter + 1);
            // if we don't have writes, logic is the same as shouldValidate()
            else
                return (global_counter == cached_counter);
        }
/**
         *  A transaction that wishes to commit can skip final validation if no
         *  other transaction has committed.  Furthermore, a transaction that
         *  has writes must increment the counter.  This method tries to
         *  increment the counter and returns true only if validation can be
         *  skipped.
         */
A transaction that wishes to commit can skip final validation if no
other transaction has committed.  Furthermore, a transaction that
has writes must increment the counter.  This method tries to
increment the counter and returns true only if validation can be
skipped.
A transaction that wishes to commit can skip final validation if no other transaction has committed . Furthermore a transaction that has writes must increment the counter . This method tries to increment the counter and returns true only if validation can be skipped .
bool tryCommit()
        {
            if (didRW)
                return bool_cas(&global_counter,
                                cached_counter, cached_counter + 1);
            else
                return (global_counter == cached_counter);
        }
bool tryCommit ( ) { if ( didRW ) return bool_cas ( & global_counter , cached_counter , cached_counter + 1 ) ; else return ( global_counter == cached_counter ) ; }
A transaction that wishes to commit can skip final validation if no
  other transaction has committed.
A transaction that wishes to commit can skip final validation if no other transaction has committed .
// if we have writes, then return true only if we can increment the // counter from the last value we observed. // if we don't have writes, logic is the same as shouldValidate()