global_event.hh (10361:280cc9b0794f) global_event.hh (11290:1640dd68b0a4)
1/*
2 * Copyright (c) 2011-2013 Advanced Micro Devices, Inc.
3 * Copyright (c) 2013 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

214 public:
215 void process();
216 BarrierEvent(Base *global_event, Priority p, Flags f)
217 : Base::BarrierEvent(global_event, p, f)
218 { }
219 };
220
221 GlobalSyncEvent(Priority p, Flags f)
1/*
2 * Copyright (c) 2011-2013 Advanced Micro Devices, Inc.
3 * Copyright (c) 2013 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

214 public:
215 void process();
216 BarrierEvent(Base *global_event, Priority p, Flags f)
217 : Base::BarrierEvent(global_event, p, f)
218 { }
219 };
220
221 GlobalSyncEvent(Priority p, Flags f)
222 : Base(p, f)
222 : Base(p, f), repeat(0)
223 { }
224
225 GlobalSyncEvent(Tick when, Tick _repeat, Priority p, Flags f)
226 : Base(p, f), repeat(_repeat)
227 {
228 schedule(when);
229 }
230
231 void process();
232
233 const char *description() const;
234
235 Tick repeat;
236};
237
238
239#endif // __SIM_GLOBAL_EVENT_HH__
223 { }
224
225 GlobalSyncEvent(Tick when, Tick _repeat, Priority p, Flags f)
226 : Base(p, f), repeat(_repeat)
227 {
228 schedule(when);
229 }
230
231 void process();
232
233 const char *description() const;
234
235 Tick repeat;
236};
237
238
239#endif // __SIM_GLOBAL_EVENT_HH__