gem5 v24.0.0.0
Loading...
Searching...
No Matches
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, and gem5::FutexKey::tgid.


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

Generated on Tue Jun 18 2024 16:24:56 for gem5 by doxygen 1.11.0