mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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 FileRead;
|
||||||
class FileWrite;
|
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
|
class Worker
|
||||||
{
|
{
|
||||||
#pragma pack( 1 )
|
#pragma pack( 1 )
|
||||||
|
|||||||
@ -26,6 +26,13 @@ namespace tracy
|
|||||||
struct prime_number_hash_policy;
|
struct prime_number_hash_policy;
|
||||||
struct power_of_two_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
|
namespace detailv3
|
||||||
{
|
{
|
||||||
template<typename Result, typename Functor>
|
template<typename Result, typename Functor>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user