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, 230 std::string vnet_type) |
231{ 232 checkNetworkAllocation(id, ordered, network_num); 233 return m_toNetQueues[id][network_num]; 234} 235 236MessageBuffer* |
237SimpleNetwork::getFromNetQueue(NodeID id, bool ordered, int network_num, 238 std::string vnet_type) |
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 --- |