mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Move nohash<> from TracyWorker to flat hash map.
This commit is contained in:
parent
37808ec4c7
commit
765a1ececf
@ -24,13 +24,6 @@ namespace tracy
|
||||
class FileRead;
|
||||
class FileWrite;
|
||||
|
||||
template<typename T>
|
||||
struct nohash
|
||||
{
|
||||
size_t operator()( const T& v ) { return (size_t)v; }
|
||||
typedef tracy::power_of_two_hash_policy hash_policy;
|
||||
};
|
||||
|
||||
class Worker
|
||||
{
|
||||
#pragma pack( 1 )
|
||||
|
@ -26,6 +26,13 @@ namespace tracy
|
||||
struct prime_number_hash_policy;
|
||||
struct power_of_two_hash_policy;
|
||||
|
||||
template<typename T>
|
||||
struct nohash
|
||||
{
|
||||
size_t operator()( const T& v ) { return (size_t)v; }
|
||||
typedef tracy::power_of_two_hash_policy hash_policy;
|
||||
};
|
||||
|
||||
namespace detailv3
|
||||
{
|
||||
template<typename Result, typename Functor>
|
||||
|
Loading…
Reference in New Issue
Block a user