38 enum ExclusiveStoreStatus { EXCLUSIVE_STORE_NA = 0, EXCLUSIVE_STORE_SUCCESS, EXCLUSIVE_STORE_FAILURE };
43 std::vector<int> m_id;
46 void add_hop(
int id) { m_id.push_back(
id); }
50 if (m_id.size() !=
o.m_id.size()) {
51 return m_id.size() <
o.m_id.size();
54 auto it0 = m_id.begin();
55 auto it1 =
o.m_id.begin();
67 if (m_id.size() !=
o.m_id.size()) {
71 auto it0 = m_id.begin();
72 auto it1 =
o.m_id.begin();
82 bool operator!=(
const InitiatorId&
o)
const {
return !(*
this ==
o); }
87 ExclusiveStoreStatus m_store_sta = EXCLUSIVE_STORE_NA;
100 m_store_sta =
other.m_store_sta;
103 void set_exclusive_store_success() { m_store_sta = EXCLUSIVE_STORE_SUCCESS; }
105 void set_exclusive_store_failure() { m_store_sta = EXCLUSIVE_STORE_FAILURE; }
107 ExclusiveStoreStatus get_exclusive_store_status()
const {
return m_store_sta; }
109 void add_hop(
int id) { m_id.add_hop(
id); }
111 const InitiatorId& get_initiator_id()
const {
return m_id; }