Throttle.hh (9117:49116b947194) Throttle.hh (9230:33eb3c8a98b9)
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,
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);
56 int link_bandwidth_multiplier, int endpoint_bandwidth,
57 EventManager *em);
57 Throttle(NodeID node, int link_latency, int link_bandwidth_multiplier,
58 Throttle(NodeID node, int link_latency, int link_bandwidth_multiplier,
58 int endpoint_bandwidth);
59 int endpoint_bandwidth, EventManager *em);
59 ~Throttle() {}
60
61 std::string name()
62 { return csprintf("Throttle-%i", m_sID); }
63
64 void addLinks(const std::vector<MessageBuffer*>& in_vec,
65 const std::vector<MessageBuffer*>& out_vec);
66 void wakeup();

--- 58 unchanged lines hidden ---
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 ---