eventq.hh (10673:a3cf30302e19) eventq.hh (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2000-2005 The Regents of The University of Michigan
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * Copyright (c) 2013 Mark D. Hill and David A. Wood
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

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

345 Priority priority() const { return _priority; }
346
347 //! If this is part of a GlobalEvent, return the pointer to the
348 //! Global Event. By default, there is no GlobalEvent, so return
349 //! NULL. (Overridden in GlobalEvent::BarrierEvent.)
350 virtual BaseGlobalEvent *globalEvent() { return NULL; }
351
352#ifndef SWIG
1/*
2 * Copyright (c) 2000-2005 The Regents of The University of Michigan
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * Copyright (c) 2013 Mark D. Hill and David A. Wood
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

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

345 Priority priority() const { return _priority; }
346
347 //! If this is part of a GlobalEvent, return the pointer to the
348 //! Global Event. By default, there is no GlobalEvent, so return
349 //! NULL. (Overridden in GlobalEvent::BarrierEvent.)
350 virtual BaseGlobalEvent *globalEvent() { return NULL; }
351
352#ifndef SWIG
353 virtual void serialize(std::ostream &os);
354 virtual void unserialize(Checkpoint *cp, const std::string &section);
353 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
354 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
355
356 //! This function is required to support restoring from checkpoints
357 //! when running with multiple queues. Since we still have not thrashed
358 //! out all the details on checkpointing, this function is most likely
359 //! to be revisited in future.
355
356 //! This function is required to support restoring from checkpoints
357 //! when running with multiple queues. Since we still have not thrashed
358 //! out all the details on checkpointing, this function is most likely
359 //! to be revisited in future.
360 virtual void unserialize(Checkpoint *cp, const std::string &section,
361 EventQueue *eventq);
360 virtual void unserializeEvent(CheckpointIn &cp, EventQueue *eventq);
362#endif
363};
364
365#ifndef SWIG
366inline bool
367operator<(const Event &l, const Event &r)
368{
369 return l.when() < r.when() ||

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

642 * @see EventQueue::ScopedRelease
643 * @see EventQueue
644 */
645 void lock() { service_mutex.lock(); }
646 void unlock() { service_mutex.unlock(); }
647 /**@}*/
648
649#ifndef SWIG
361#endif
362};
363
364#ifndef SWIG
365inline bool
366operator<(const Event &l, const Event &r)
367{
368 return l.when() < r.when() ||

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

641 * @see EventQueue::ScopedRelease
642 * @see EventQueue
643 */
644 void lock() { service_mutex.lock(); }
645 void unlock() { service_mutex.unlock(); }
646 /**@}*/
647
648#ifndef SWIG
650 virtual void serialize(std::ostream &os);
651 virtual void unserialize(Checkpoint *cp, const std::string &section);
649 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
650 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
652#endif
653
654 virtual ~EventQueue() { }
655};
656
657void dumpMainQueue();
658
659#ifndef SWIG

--- 115 unchanged lines hidden ---
651#endif
652
653 virtual ~EventQueue() { }
654};
655
656void dumpMainQueue();
657
658#ifndef SWIG

--- 115 unchanged lines hidden ---