gem5
|
FutexMap class holds a map of all futexes used in the system. More...
#include <futex_map.hh>
Public Member Functions | |
void | suspend (Addr addr, uint64_t tgid, ThreadContext *tc) |
Inserts a futex into the map with one waiting TC. More... | |
int | wakeup (Addr addr, uint64_t tgid, int count) |
Wakes up at most count waiting threads on a futex. More... | |
FutexMap class holds a map of all futexes used in the system.
Definition at line 87 of file futex_map.hh.
|
inline |
Inserts a futex into the map with one waiting TC.
Suspend the thread context
Definition at line 92 of file futex_map.hh.
References ThreadContext::suspend().
|
inline |
Wakes up at most count waiting threads on a futex.
Definition at line 110 of file futex_map.hh.
References X86ISA::count.
Referenced by exitFutexWake().