model: wake up pending (sleep-set) actions for fences
authorBrian Norris <banorris@uci.edu>
Fri, 22 Feb 2013 07:07:55 +0000 (23:07 -0800)
committerBrian Norris <banorris@uci.edu>
Fri, 22 Feb 2013 07:08:34 +0000 (23:08 -0800)
commitd5ec9d02d3ce4a92811a4515f808efcb0a1326b7
tree8d4a1ad17e749eecba71c6f27c0913976e03e92b
parenta01fa7fb82f22ef8d4787fd5d3ad44598a44f924
model: wake up pending (sleep-set) actions for fences

This completes fence backtracking properly by waking up actions when the
appropriate fence interactions occur. This is a little more complicated
than the simple "could_synchronize()" test, since fence synchronization
can involve interaction of more than two actions.

So, pull the complexity of the "should we wake a thread up" computation
into its own function.
model.cc
model.h