Deleted Added
sdiff udiff text old ( 7451:97c34fea328a ) new ( 7452:f98fe16f50ee )
full compact
1/*
2 * Copyright (c) 2000-2005 The Regents of The University of Michigan
3 * Copyright (c) 2008 The Hewlett-Packard Development Company
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

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

228Event::unserialize(Checkpoint *cp, const string &section)
229{
230 if (scheduled())
231 mainEventQueue.deschedule(this);
232
233 UNSERIALIZE_SCALAR(_when);
234 UNSERIALIZE_SCALAR(_priority);
235
236 // need to see if original event was in a scheduled, unsquashed
237 // state, but don't want to restore those flags in the current
238 // object itself (since they aren't immediately true)
239 short _flags;
240 UNSERIALIZE_SCALAR(_flags);
241 assert(initialized());
242 flags = _flags;
243 flags.set(Initialized);
244
245 bool wasScheduled = flags.isSet(Scheduled) && !flags.isSet(Squashed);
246 flags.clear(Squashed | Scheduled);
247
248 if (wasScheduled) {
249 DPRINTF(Config, "rescheduling at %d\n", _when);
250 mainEventQueue.schedule(this, _when);
251 }
252}

--- 164 unchanged lines hidden ---