eventq.hh (8990:5d80de4bbf96) | eventq.hh (9044:904ddeecc653) |
---|---|
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; --- 28 unchanged lines hidden (view full) --- 37#define __SIM_EVENTQ_HH__ 38 39#include <algorithm> 40#include <cassert> 41#include <climits> 42#include <iosfwd> 43#include <string> 44 | 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; --- 28 unchanged lines hidden (view full) --- 37#define __SIM_EVENTQ_HH__ 38 39#include <algorithm> 40#include <cassert> 41#include <climits> 42#include <iosfwd> 43#include <string> 44 |
45#include "base/fast_alloc.hh" | |
46#include "base/flags.hh" 47#include "base/misc.hh" 48#include "base/trace.hh" 49#include "base/types.hh" 50#include "debug/Event.hh" 51#include "sim/serialize.hh" 52 53class EventQueue; // forward declaration 54 55extern EventQueue mainEventQueue; 56 57/* 58 * An item on an event queue. The action caused by a given 59 * event is specified by deriving a subclass and overriding the 60 * process() member function. 61 * 62 * Caution, the order of members is chosen to maximize data packing. 63 */ | 45#include "base/flags.hh" 46#include "base/misc.hh" 47#include "base/trace.hh" 48#include "base/types.hh" 49#include "debug/Event.hh" 50#include "sim/serialize.hh" 51 52class EventQueue; // forward declaration 53 54extern EventQueue mainEventQueue; 55 56/* 57 * An item on an event queue. The action caused by a given 58 * event is specified by deriving a subclass and overriding the 59 * process() member function. 60 * 61 * Caution, the order of members is chosen to maximize data packing. 62 */ |
64class Event : public Serializable, public FastAlloc | 63class Event : public Serializable |
65{ 66 friend class EventQueue; 67 68 protected: 69 typedef unsigned short FlagsType; 70 typedef ::Flags<FlagsType> Flags; 71 72 static const FlagsType PublicRead = 0x003f; // public readable flags --- 532 unchanged lines hidden --- | 64{ 65 friend class EventQueue; 66 67 protected: 68 typedef unsigned short FlagsType; 69 typedef ::Flags<FlagsType> Flags; 70 71 static const FlagsType PublicRead = 0x003f; // public readable flags --- 532 unchanged lines hidden --- |