SimpleNetwork.cc (11049:dfb0aa3f0649) | SimpleNetwork.cc (11064:386a5200e298) |
---|---|
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; --- 134 unchanged lines hidden (view full) --- 143SimpleNetwork::checkNetworkAllocation(NodeID id, bool ordered, int network_num) 144{ 145 assert(id < m_nodes); 146 assert(network_num < m_virtual_networks); 147 148 if (ordered) { 149 m_ordered[network_num] = true; 150 } | 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; --- 134 unchanged lines hidden (view full) --- 143SimpleNetwork::checkNetworkAllocation(NodeID id, bool ordered, int network_num) 144{ 145 assert(id < m_nodes); 146 assert(network_num < m_virtual_networks); 147 148 if (ordered) { 149 m_ordered[network_num] = true; 150 } |
151 m_in_use[network_num] = true; | |
152} 153 154void 155SimpleNetwork::setToNetQueue(NodeID id, bool ordered, int network_num, 156 std::string vnet_type, MessageBuffer *b) 157{ 158 checkNetworkAllocation(id, ordered, network_num); 159 while (m_toNetQueues[id].size() <= network_num) { --- 99 unchanged lines hidden --- | 151} 152 153void 154SimpleNetwork::setToNetQueue(NodeID id, bool ordered, int network_num, 155 std::string vnet_type, MessageBuffer *b) 156{ 157 checkNetworkAllocation(id, ordered, network_num); 158 while (m_toNetQueues[id].size() <= network_num) { --- 99 unchanged lines hidden --- |