Allow access to profiler's worker thread tid.

This commit is contained in:
Bartosz Taudul
2019-10-27 17:20:17 +01:00
parent 0610c73be3
commit 14af14999e
2 changed files with 6 additions and 0 deletions

View File

@@ -2481,6 +2481,11 @@ void Profiler::ProcessSysTime()
}
#endif
uint64_t Profiler::GetProfilerTid() const
{
return s_profilerThreadId;
}
}
#ifdef __cplusplus

View File

@@ -447,6 +447,7 @@ public:
void SendString( uint64_t ptr, const char* str, QueueType type );
uint64_t Pid() const { return m_pid; }
uint64_t GetProfilerTid() const;
private:
enum class DequeueStatus { Success, ConnectionLost, QueueEmpty };