gem5 v24.0.0.0
Loading...
Searching...
No Matches
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
 
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
 

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 Jun 18 2024 16:24:15 for gem5 by doxygen 1.11.0