Network.cc (10918:dd3ab1f109ad) Network.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;

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

52
53 // Allocate to and from queues
54 // Queues that are getting messages from protocol
55 m_toNetQueues.resize(m_nodes);
56
57 // Queues that are feeding the protocol
58 m_fromNetQueues.resize(m_nodes);
59
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;

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

52
53 // Allocate to and from queues
54 // Queues that are getting messages from protocol
55 m_toNetQueues.resize(m_nodes);
56
57 // Queues that are feeding the protocol
58 m_fromNetQueues.resize(m_nodes);
59
60 m_in_use.resize(m_virtual_networks);
61 m_ordered.resize(m_virtual_networks);
62
63 for (int i = 0; i < m_virtual_networks; i++) {
60 m_ordered.resize(m_virtual_networks);
61
62 for (int i = 0; i < m_virtual_networks; i++) {
64 m_in_use[i] = false;
65 m_ordered[i] = false;
66 }
67
68 params()->ruby_system->registerNetwork(this);
69
70 // Initialize the controller's network pointers
71 for (std::vector<BasicExtLink*>::const_iterator i = p->ext_links.begin();
72 i != p->ext_links.end(); ++i) {

--- 60 unchanged lines hidden ---
63 m_ordered[i] = false;
64 }
65
66 params()->ruby_system->registerNetwork(this);
67
68 // Initialize the controller's network pointers
69 for (std::vector<BasicExtLink*>::const_iterator i = p->ext_links.begin();
70 i != p->ext_links.end(); ++i) {

--- 60 unchanged lines hidden ---