gem5
|
Temporarily migrate execution to a different event queue. More...
#include <eventq.hh>
Public Member Functions | |
ScopedMigration (EventQueue *_new_eq) | |
~ScopedMigration () | |
Private Attributes | |
EventQueue & | new_eq |
EventQueue & | old_eq |
Temporarily migrate execution to a different event queue.
An instance of this class temporarily migrates execution to a different event queue by releasing the current queue, locking the new queue, and updating curEventQueue(). This can, for example, be useful when performing IO across thread event queues when timing is not crucial (e.g., during fast forwarding).
|
inline |
Definition at line 549 of file eventq.hh.
References curEventQueue(), EventQueue::lock(), new_eq, old_eq, and EventQueue::unlock().
|
inline |
Definition at line 557 of file eventq.hh.
References curEventQueue(), EventQueue::lock(), new_eq, old_eq, and EventQueue::unlock().
|
private |
Definition at line 565 of file eventq.hh.
Referenced by ScopedMigration(), and ~ScopedMigration().
|
private |
Definition at line 566 of file eventq.hh.
Referenced by ScopedMigration(), and ~ScopedMigration().