28 std::lock_guard<std::mutex> sequencelock(m_SequenceMutex);
31 if (m_Sequence >= MIN_STATIC_GUID)
42 uint64_t staticHash = m_Hash(str) | MIN_STATIC_GUID;
49 std::lock_guard<std::mutex> sequencelock(m_SequenceMutex);
54 std::hash<std::string> m_Hash;
56 std::mutex m_SequenceMutex;
void Reset()
Reset the generator back to zero. Used mainly for test.
Strongly typed guids to distinguish between those generated at runtime, and those that are statically...
Copyright (c) 2020 ARM Limited.
ProfilingStaticGuid GenerateStaticId(const std::string &str) override
Create a ProfilingStaticGuid based on a hash of the string.
ProfilingGuidGenerator()
Construct a generator with the default address space static/dynamic partitioning. ...
ProfilingDynamicGuid NextGuid() override
Return the next random Guid in the sequence.