sim_events.hh (3144:b6e9e1811d71) sim_events.hh (4167:ce5d0f62f13b)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
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;

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

120 : Event(q), interval(ival)
121 { schedule(curTick + interval); }
122
123 void process(); // process event
124
125 virtual const char *description();
126};
127
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
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;

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

120 : Event(q), interval(ival)
121 { schedule(curTick + interval); }
122
123 void process(); // process event
124
125 virtual const char *description();
126};
127
128//
129// Progress event: print out cycle every so often so we know we're
130// making forward progress.
131//
132class ProgressEvent : public Event
133{
134 protected:
135 Tick interval;
136
137 public:
138 ProgressEvent(EventQueue *q, Tick ival)
139 : Event(q), interval(ival)
140 { schedule(curTick + interval); }
141
142 void process(); // process event
143
144 virtual const char *description();
145};
146
147#endif // __SIM_SIM_EVENTS_HH__
128#endif // __SIM_SIM_EVENTS_HH__