|
gem5
v21.0.1.0
|
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 | |
| ThreadContext * | tc |
| int | bitmask |
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.
| 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.
| 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().
| int WaiterState::bitmask |
Definition at line 71 of file futex_map.hh.
Referenced by checkMask().
| ThreadContext* WaiterState::tc |
Definition at line 70 of file futex_map.hh.
Referenced by FutexMap::wakeup_bitset().