Deleted Added
sdiff udiff text old ( 9171:ae88ecf37145 ) new ( 9230:33eb3c8a98b9 )
full compact
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;

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

44// Operator for helper class
45bool
46operator<(const LinkOrder& l1, const LinkOrder& l2)
47{
48 return (l1.m_value < l2.m_value);
49}
50
51PerfectSwitch::PerfectSwitch(SwitchID sid, SimpleNetwork* network_ptr)
52{
53 m_virtual_networks = network_ptr->getNumberOfVirtualNetworks();
54 m_switch_id = sid;
55 m_round_robin_start = 0;
56 m_network_ptr = network_ptr;
57 m_wakeups_wo_switch = 0;
58
59 for(int i = 0;i < m_virtual_networks;++i)

--- 282 unchanged lines hidden ---