gem5  v20.0.0.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
EventQueue::ScopedRelease Class Reference

Temporarily release the event queue service lock. More...

#include <eventq.hh>

Public Member Functions

 ScopedRelease (EventQueue *_eq)
 api_eventq More...
 
 ~ScopedRelease ()
 

Private Attributes

EventQueueeq
 

Detailed Description

Temporarily release the event queue service lock.

There are cases where it is desirable to temporarily release the event queue lock to prevent deadlocks. For example, when waiting on the global barrier, we need to release the lock to prevent deadlocks from happening when another thread tries to temporarily take over the event queue waiting on the barrier.

Definition at line 715 of file eventq.hh.

Constructor & Destructor Documentation

◆ ScopedRelease()

EventQueue::ScopedRelease::ScopedRelease ( EventQueue _eq)
inline

api_eventq

Definition at line 721 of file eventq.hh.

References PowerISA::eq.

◆ ~ScopedRelease()

EventQueue::ScopedRelease::~ScopedRelease ( )
inline

Definition at line 727 of file eventq.hh.

References PowerISA::eq.

Member Data Documentation

◆ eq

EventQueue& EventQueue::ScopedRelease::eq
private

Definition at line 733 of file eventq.hh.


The documentation for this class was generated from the following file:

Generated on Mon Jun 8 2020 15:45:22 for gem5 by doxygen 1.8.13