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; --- 39 unchanged lines hidden (view full) --- 48#include "mem/ruby/system/System.hh" 49 50class MessageBuffer; 51 52class Throttle : public Consumer 53{ 54 public: 55 Throttle(int sID, NodeID node, int link_latency, |
56 int link_bandwidth_multiplier, int endpoint_bandwidth, 57 EventManager *em); |
58 Throttle(NodeID node, int link_latency, int link_bandwidth_multiplier, |
59 int endpoint_bandwidth, EventManager *em); |
60 ~Throttle() {} 61 62 std::string name() 63 { return csprintf("Throttle-%i", m_sID); } 64 65 void addLinks(const std::vector<MessageBuffer*>& in_vec, 66 const std::vector<MessageBuffer*>& out_vec); 67 void wakeup(); --- 58 unchanged lines hidden --- |