eventq.hh (5546:4ffc3cafba9b) eventq.hh (5577:d67a7becce5c)
1/*
2 * Copyright (c) 2000-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;

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

104
105 /// This event's unique ID. We can also use pointer values for
106 /// this but they're not consistent across runs making debugging
107 /// more difficult. Thus we use a global counter value when
108 /// debugging.
109 Counter instance;
110#endif
111
1/*
2 * Copyright (c) 2000-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;

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

104
105 /// This event's unique ID. We can also use pointer values for
106 /// this but they're not consistent across runs making debugging
107 /// more difficult. Thus we use a global counter value when
108 /// debugging.
109 Counter instance;
110#endif
111
112#ifdef DEBUG_EVENTQ
112#ifdef EVENTQ_DEBUG
113 Tick whenCreated; //!< time created
114 Tick whenScheduled; //!< time scheduled
115#endif
116
117 protected:
118 void
119 setWhen(Tick when)
120 {
121 _when = when;
113 Tick whenCreated; //!< time created
114 Tick whenScheduled; //!< time scheduled
115#endif
116
117 protected:
118 void
119 setWhen(Tick when)
120 {
121 _when = when;
122#ifdef DEBUG_EVENTQ
122#ifdef EVENTQ_DEBUG
123 whenScheduled = curTick;
124#endif
125 }
126
127 protected:
128 enum Flags {
129 None = 0x0,
130 Squashed = 0x1,

--- 403 unchanged lines hidden ---
123 whenScheduled = curTick;
124#endif
125 }
126
127 protected:
128 enum Flags {
129 None = 0x0,
130 Squashed = 0x1,

--- 403 unchanged lines hidden ---