eventq.cc (11168:f98eb2da15a4) | eventq.cc (11320:42ecb523c64a) |
---|---|
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 --- 249 unchanged lines hidden (view full) --- 258 UNSERIALIZE_SCALAR(_when); 259 UNSERIALIZE_SCALAR(_priority); 260 261 FlagsType _flags; 262 UNSERIALIZE_SCALAR(_flags); 263 264 // Old checkpoints had no concept of the Initialized flag 265 // so restoring from old checkpoints always fail. | 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 --- 249 unchanged lines hidden (view full) --- 258 UNSERIALIZE_SCALAR(_when); 259 UNSERIALIZE_SCALAR(_priority); 260 261 FlagsType _flags; 262 UNSERIALIZE_SCALAR(_flags); 263 264 // Old checkpoints had no concept of the Initialized flag 265 // so restoring from old checkpoints always fail. |
266 // Events are initialized on construction but original code 267 // "flags = _flags" would just overwrite the initialization. 268 // So, read in the checkpoint flags, but then set the Initialized | 266 // Events are initialized on construction but original code 267 // "flags = _flags" would just overwrite the initialization. 268 // So, read in the checkpoint flags, but then set the Initialized |
269 // flag on top of it in order to avoid failures. 270 assert(initialized()); 271 flags = _flags; 272 flags.set(Initialized); 273 274 // need to see if original event was in a scheduled, unsquashed 275 // state, but don't want to restore those flags in the current 276 // object itself (since they aren't immediately true) --- 166 unchanged lines hidden --- | 269 // flag on top of it in order to avoid failures. 270 assert(initialized()); 271 flags = _flags; 272 flags.set(Initialized); 273 274 // need to see if original event was in a scheduled, unsquashed 275 // state, but don't want to restore those flags in the current 276 // object itself (since they aren't immediately true) --- 166 unchanged lines hidden --- |