clockvector: fix 'happens_before', change name to 'synchronized_since'
authorBrian Norris <banorris@uci.edu>
Thu, 21 Jun 2012 08:48:03 +0000 (01:48 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 21 Jun 2012 08:48:03 +0000 (01:48 -0700)
commite8bc4a0715ce1c86f3ff7d24179e1164bf3ee61b
treea22046cd5b499a66fd291c27048753227eb1634a
parent69ecbdff21cd552ab9e0bc18dbbd42fb1aa5e799
clockvector: fix 'happens_before', change name to 'synchronized_since'

First, the 'happens_before' function needed to use an inclusive 'less-than'
(i.e., <=) instead of 'strictly less-than' (i.e., <) in order to fit with
most of the algorithm.

Second, the association of 'happens_before' directly with the ClockVector is
not very intuitive to use. I will write an additional happens_before()
function that can easily compare two ModelAction objects. So change this
happens_before() (with it awkward usage) to be called synchronized_since(),
representing whether the ClockVector's thread has previously synchronized
with the ModelAction's thread.
clockvector.cc
clockvector.h