SimpleNetwork.cc (8259:36987780169e) SimpleNetwork.cc (8308:79cf09f5a234)
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;

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

221
222 if (ordered) {
223 m_ordered[network_num] = true;
224 }
225 m_in_use[network_num] = true;
226}
227
228MessageBuffer*
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;

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

221
222 if (ordered) {
223 m_ordered[network_num] = true;
224 }
225 m_in_use[network_num] = true;
226}
227
228MessageBuffer*
229SimpleNetwork::getToNetQueue(NodeID id, bool ordered, int network_num)
229SimpleNetwork::getToNetQueue(NodeID id, bool ordered, int network_num,
230 std::string vnet_type)
230{
231 checkNetworkAllocation(id, ordered, network_num);
232 return m_toNetQueues[id][network_num];
233}
234
235MessageBuffer*
231{
232 checkNetworkAllocation(id, ordered, network_num);
233 return m_toNetQueues[id][network_num];
234}
235
236MessageBuffer*
236SimpleNetwork::getFromNetQueue(NodeID id, bool ordered, int network_num)
237SimpleNetwork::getFromNetQueue(NodeID id, bool ordered, int network_num,
238 std::string vnet_type)
237{
238 checkNetworkAllocation(id, ordered, network_num);
239 return m_fromNetQueues[id][network_num];
240}
241
242const std::vector<Throttle*>*
243SimpleNetwork::getThrottles(NodeID id) const
244{

--- 127 unchanged lines hidden ---
239{
240 checkNetworkAllocation(id, ordered, network_num);
241 return m_fromNetQueues[id][network_num];
242}
243
244const std::vector<Throttle*>*
245SimpleNetwork::getThrottles(NodeID id) const
246{

--- 127 unchanged lines hidden ---