gem5  v21.2.0.0
Public Member Functions | List of all members
std::hash< gem5::FutexKey > Struct Reference

The unordered_map structure needs the parenthesis operator defined for std::hash if a user defined key is used. More...

#include <futex_map.hh>

Public Member Functions

size_t operator() (const gem5::FutexKey &in) const
 

Detailed Description

The unordered_map structure needs the parenthesis operator defined for std::hash if a user defined key is used.

Our key is is user defined so we need to provide the hash functor.

Definition at line 65 of file futex_map.hh.

Member Function Documentation

◆ operator()()

size_t std::hash< gem5::FutexKey >::operator() ( const gem5::FutexKey in) const
inline

Definition at line 67 of file futex_map.hh.

References gem5::FutexKey::addr, gem5::ArmISA::i, and gem5::FutexKey::tgid.


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

Generated on Tue Dec 21 2021 11:37:15 for gem5 by doxygen 1.8.17