gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
WaiterState Class Reference

WaiterState defines internal state of a waiter thread. More...

#include <futex_map.hh>

Public Member Functions

 WaiterState (ThreadContext *_tc, int _bitmask)
 this constructor is used if futex ops with bitset are used More...
 
bool checkMask (int wakeup_bitmask) const
 return true if the bit-wise AND of the wakeup_bitmask given by a waking thread and this thread's internal bitmask is non-zero More...
 

Public Attributes

ThreadContexttc
 
int bitmask
 

Detailed Description

WaiterState defines internal state of a waiter thread.

The state includes a pointer to the thread's context and its associated bitmask.

Definition at line 68 of file futex_map.hh.

Constructor & Destructor Documentation

◆ WaiterState()

WaiterState::WaiterState ( ThreadContext _tc,
int  _bitmask 
)

this constructor is used if futex ops with bitset are used

Definition at line 52 of file futex_map.cc.

Member Function Documentation

◆ checkMask()

bool WaiterState::checkMask ( int  wakeup_bitmask) const

return true if the bit-wise AND of the wakeup_bitmask given by a waking thread and this thread's internal bitmask is non-zero

Definition at line 56 of file futex_map.cc.

References bitmask.

Referenced by FutexMap::wakeup_bitset().

Member Data Documentation

◆ bitmask

int WaiterState::bitmask

Definition at line 71 of file futex_map.hh.

Referenced by checkMask().

◆ tc

ThreadContext* WaiterState::tc

Definition at line 70 of file futex_map.hh.

Referenced by FutexMap::wakeup_bitset().


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

Generated on Wed Sep 30 2020 14:02:34 for gem5 by doxygen 1.8.17