gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
FutexMap Class Reference

FutexMap class holds a map of all futexes used in the system. More...

#include <futex_map.hh>

Inheritance diagram for FutexMap:

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...
 

Detailed Description

FutexMap class holds a map of all futexes used in the system.

Definition at line 87 of file futex_map.hh.

Member Function Documentation

void FutexMap::suspend ( Addr  addr,
uint64_t  tgid,
ThreadContext tc 
)
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().

int FutexMap::wakeup ( Addr  addr,
uint64_t  tgid,
int  count 
)
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().


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

Generated on Fri Jun 9 2017 13:04:11 for gem5 by doxygen 1.8.6