make linux_rw locks work again
authorBrian Demsky <bdemsky@uci.edu>
Wed, 10 Oct 2012 01:10:10 +0000 (18:10 -0700)
committerBrian Demsky <bdemsky@uci.edu>
Wed, 10 Oct 2012 01:10:10 +0000 (18:10 -0700)
model.cc

index c0cc93e..e394865 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -767,10 +767,9 @@ Thread * ModelChecker::check_current_action(ModelAction *curr)
                return get_next_thread(NULL);
        }
 
-       wake_up_sleeping_actions(curr);
-
        ModelAction *newcurr = initialize_curr_action(curr);
 
+       wake_up_sleeping_actions(curr);
 
        /* Add the action to lists before any other model-checking tasks */
        if (!second_part_of_rmw)