X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=action.cc;h=d90a94ee48211ddb17e9a3f26cafcb4e56ca9e55;hb=c065a08969bf32195de28d3a32cf0b9c2d8fbbe2;hp=ee980b875988b362a2f6c3402be8dc5e795b69d7;hpb=527eb9241e1b39b6ad4125a71b951d445d4e251e;p=c11tester.git diff --git a/action.cc b/action.cc index ee980b87..d90a94ee 100644 --- a/action.cc +++ b/action.cc @@ -38,14 +38,8 @@ ModelAction::ModelAction(action_type_t type, memory_order order, void *loc, last_fence_release(NULL), cv(NULL), rf_cv(NULL), - trace_ref(NULL), - thrdmap_ref(NULL), - action_ref(NULL), - func_ref_count(0), value(value), type(type), - original_type(ATOMIC_NOP), - swap_flag(false), order(order), original_order(order), seq_number(ACTION_INITIAL_CLOCK) @@ -75,14 +69,8 @@ ModelAction::ModelAction(action_type_t type, memory_order order, uint64_t value, last_fence_release(NULL), cv(NULL), rf_cv(NULL), - trace_ref(NULL), - thrdmap_ref(NULL), - action_ref(NULL), - func_ref_count(0), value(value), type(type), - original_type(ATOMIC_NOP), - swap_flag(false), order(order), original_order(order), seq_number(ACTION_INITIAL_CLOCK) @@ -111,14 +99,8 @@ ModelAction::ModelAction(action_type_t type, memory_order order, void *loc, last_fence_release(NULL), cv(NULL), rf_cv(NULL), - trace_ref(NULL), - thrdmap_ref(NULL), - action_ref(NULL), - func_ref_count(0), value(value), type(type), - original_type(ATOMIC_NOP), - swap_flag(false), order(order), original_order(order), seq_number(ACTION_INITIAL_CLOCK) @@ -151,14 +133,8 @@ ModelAction::ModelAction(action_type_t type, const char * position, memory_order last_fence_release(NULL), cv(NULL), rf_cv(NULL), - trace_ref(NULL), - thrdmap_ref(NULL), - action_ref(NULL), - func_ref_count(0), value(value), type(type), - original_type(ATOMIC_NOP), - swap_flag(false), order(order), original_order(order), seq_number(ACTION_INITIAL_CLOCK) @@ -192,14 +168,8 @@ ModelAction::ModelAction(action_type_t type, const char * position, memory_order last_fence_release(NULL), cv(NULL), rf_cv(NULL), - trace_ref(NULL), - thrdmap_ref(NULL), - action_ref(NULL), - func_ref_count(0), value(value), type(type), - original_type(ATOMIC_NOP), - swap_flag(false), order(order), original_order(order), seq_number(ACTION_INITIAL_CLOCK) @@ -787,16 +757,3 @@ cdsc::mutex * ModelAction::get_mutex() const else return NULL; } - -/** @brief Swap type with original type */ -void ModelAction::use_original_type() -{ - action_type_t tmp = type; - type = original_type; - original_type = tmp; - - if (swap_flag) - swap_flag = false; - else - swap_flag = true; -}