MessageBuffer.hh (11049:dfb0aa3f0649) MessageBuffer.hh (11061:25b53a7195f7)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 170 unchanged lines hidden (view full) ---

179 Tick m_time_last_time_pop;
180 Tick m_last_arrival_time;
181
182 unsigned int m_size_at_cycle_start;
183 unsigned int m_msgs_this_cycle;
184
185 int m_not_avail_count; // count the # of times I didn't have N
186 // slots available
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 170 unchanged lines hidden (view full) ---

179 Tick m_time_last_time_pop;
180 Tick m_last_arrival_time;
181
182 unsigned int m_size_at_cycle_start;
183 unsigned int m_msgs_this_cycle;
184
185 int m_not_avail_count; // count the # of times I didn't have N
186 // slots available
187 uint64 m_msg_counter;
187 uint64_t m_msg_counter;
188 int m_priority_rank;
189 const bool m_strict_fifo;
190 const bool m_randomization;
191
192 int m_input_link_id;
193 int m_vnet_id;
194};
195
196Cycles random_time();
197
198inline std::ostream&
199operator<<(std::ostream& out, const MessageBuffer& obj)
200{
201 obj.print(out);
202 out << std::flush;
203 return out;
204}
205
206#endif // __MEM_RUBY_BUFFERS_MESSAGEBUFFER_HH__
188 int m_priority_rank;
189 const bool m_strict_fifo;
190 const bool m_randomization;
191
192 int m_input_link_id;
193 int m_vnet_id;
194};
195
196Cycles random_time();
197
198inline std::ostream&
199operator<<(std::ostream& out, const MessageBuffer& obj)
200{
201 obj.print(out);
202 out << std::flush;
203 return out;
204}
205
206#endif // __MEM_RUBY_BUFFERS_MESSAGEBUFFER_HH__