gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::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 86 of file futex_map.hh.

Constructor & Destructor Documentation

◆ WaiterState()

gem5::WaiterState::WaiterState ( ThreadContext _tc,
int  _bitmask 
)

this constructor is used if futex ops with bitset are used

Definition at line 43 of file futex_map.cc.

Member Function Documentation

◆ checkMask()

bool gem5::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 47 of file futex_map.cc.

References bitmask.

Referenced by gem5::FutexMap::wakeup_bitset().

Member Data Documentation

◆ bitmask

int gem5::WaiterState::bitmask

Definition at line 90 of file futex_map.hh.

Referenced by checkMask().

◆ tc

ThreadContext* gem5::WaiterState::tc

Definition at line 89 of file futex_map.hh.

Referenced by gem5::FutexMap::wakeup_bitset().


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

Generated on Tue Sep 21 2021 12:28:25 for gem5 by doxygen 1.8.17