Consumer.hh (9557:8666e81607a6) Consumer.hh (9600:34df8f24be7e)
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;

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

82
83 void
84 removeScheduledWakeupTime(Tick time)
85 {
86 assert(alreadyScheduled(time));
87 m_scheduled_wakeups.erase(time);
88 }
89
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;

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

82
83 void
84 removeScheduledWakeupTime(Tick time)
85 {
86 assert(alreadyScheduled(time));
87 m_scheduled_wakeups.erase(time);
88 }
89
90 void scheduleEventAbsolute(Tick timeAbs);
91
92 protected:
90 void scheduleEvent(Cycles timeDelta);
93 void scheduleEvent(Cycles timeDelta);
91 void scheduleEventAbsolute(Cycles timeAbs);
92
93 private:
94 Tick m_last_scheduled_wakeup;
95 std::set<Tick> m_scheduled_wakeups;
96 ClockedObject *em;
97
98 class ConsumerEvent : public Event
99 {

--- 26 unchanged lines hidden ---
94
95 private:
96 Tick m_last_scheduled_wakeup;
97 std::set<Tick> m_scheduled_wakeups;
98 ClockedObject *em;
99
100 class ConsumerEvent : public Event
101 {

--- 26 unchanged lines hidden ---