Go to the source code of this file.
#define MAX_TATAS_BACKOFF 524288 |
Copyright (C) 2011 University of Rochester Department of Computer Science and Lehigh University Department of Computer Science and Engineering
License: Modified BSD Please see the file LICENSE.RSTM for licensing information Given all the atomic operations we defined in platform.hpp, we can now declare the lock types that we need for implementing some single-lock based STMs. Tune backoff parameters
NB: At some point (probably mid 2010), these values were experimentally verified to provide good performance for some workload using TATAS locks. Whether they are good values anymore is an open question.
MCS acquire. We count how long we spin, in order to detect very long delays
Fastpath TATAS acquire. The return value is how long we spent spinning
Acquisition of a ticket lock entails an increment, then a spin. We use a counter to measure how long we spend spinning, in case that information is useful to adaptive STM mechanisms.