ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCostSvc::ThreadHashCompare Class Reference

Static hash and equal members as required by tbb::concurrent_hash_map. More...

Collaboration diagram for TrigCostSvc::ThreadHashCompare:

Static Public Member Functions

static size_t hash (const std::thread::id &thread)
static bool equal (const std::thread::id &x, const std::thread::id &y)

Detailed Description

Static hash and equal members as required by tbb::concurrent_hash_map.

Definition at line 142 of file TrigCostSvc.h.

Member Function Documentation

◆ equal()

bool TrigCostSvc::ThreadHashCompare::equal ( const std::thread::id & x,
const std::thread::id & y )
static

Definition at line 544 of file TrigCostSvc.cxx.

544 {
545 return (x == y);
546}
#define y
#define x

◆ hash()

size_t TrigCostSvc::ThreadHashCompare::hash ( const std::thread::id & thread)
static

Definition at line 538 of file TrigCostSvc.cxx.

538 {
539 return static_cast<size_t>( std::hash< std::thread::id >()(thread) );
540}

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