eventq.cc (11320:42ecb523c64a) eventq.cc (12040:8cd9d09aac7a)
1/*
2 * Copyright (c) 2000-2005 The Regents of The University of Michigan
3 * Copyright (c) 2008 The Hewlett-Packard Development Company
4 * Copyright (c) 2013 Advanced Micro Devices, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

222
223 // handle action
224 if (!event->squashed()) {
225 // forward current cycle to the time when this event occurs.
226 setCurTick(event->when());
227
228 event->process();
229 if (event->isExitEvent()) {
1/*
2 * Copyright (c) 2000-2005 The Regents of The University of Michigan
3 * Copyright (c) 2008 The Hewlett-Packard Development Company
4 * Copyright (c) 2013 Advanced Micro Devices, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

222
223 // handle action
224 if (!event->squashed()) {
225 // forward current cycle to the time when this event occurs.
226 setCurTick(event->when());
227
228 event->process();
229 if (event->isExitEvent()) {
230 assert(!event->flags.isSet(Event::AutoDelete) ||
230 assert(!event->flags.isSet(Event::Managed) ||
231 !event->flags.isSet(Event::IsMainQueue)); // would be silly
232 return event;
233 }
234 } else {
235 event->flags.clear(Event::Squashed);
236 }
237
231 !event->flags.isSet(Event::IsMainQueue)); // would be silly
232 return event;
233 }
234 } else {
235 event->flags.clear(Event::Squashed);
236 }
237
238 if (event->flags.isSet(Event::AutoDelete) && !event->scheduled())
239 delete event;
238 event->release();
240
241 return NULL;
242}
243
244void
245Event::serialize(CheckpointOut &cp) const
246{
247 SERIALIZE_SCALAR(_when);

--- 195 unchanged lines hidden ---
239
240 return NULL;
241}
242
243void
244Event::serialize(CheckpointOut &cp) const
245{
246 SERIALIZE_SCALAR(_when);

--- 195 unchanged lines hidden ---