MCPcopy Create free account
hub / github.com/ImageEngine/cortex / tbb_hasher

Function tbb_hasher

include/IECore/RefCounted.h:179–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177/// with tbb_concurrent_* containers.
178template<typename T>
179inline size_t tbb_hasher( const boost::intrusive_ptr<T> &ptr )
180{
181 // This is the same as what tbb uses for raw pointers
182 const size_t h = reinterpret_cast<size_t>( ptr.get() );
183 return (h >> 3) ^ h;
184}
185
186} // namespace IECore
187

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected