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; --- 30 unchanged lines hidden (view full) --- 39#include <set> 40 41#include "sim/clocked_object.hh" 42 43class Consumer 44{ 45 public: 46 Consumer(ClockedObject *_em) |
47 : m_last_scheduled_wakeup(0), em(_em) |
48 { 49 } 50 51 virtual 52 ~Consumer() 53 { } 54 55 virtual void wakeup() = 0; --- 32 unchanged lines hidden (view full) --- 88 } 89 90 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 { 100 public: 101 ConsumerEvent(Consumer* _consumer) 102 : Event(Default_Pri, AutoDelete), m_consumer_ptr(_consumer) 103 { --- 22 unchanged lines hidden --- |