|
gem5 [DEVELOP-FOR-25.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 | |
| 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 | |
| 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 86 of file futex_map.hh.
| 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.
| 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().
| int gem5::WaiterState::bitmask |
Definition at line 90 of file futex_map.hh.
Referenced by checkMask(), and WaiterState().
| ThreadContext* gem5::WaiterState::tc |
Definition at line 89 of file futex_map.hh.
Referenced by WaiterState(), and gem5::FutexMap::wakeup_bitset().