Analytics: Set proper thread name.

This commit is contained in:
degasus 2017-04-29 09:29:52 +02:00
parent afb0beb9ab
commit 7389f0f55e
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#include "Common/Analytics.h" #include "Common/Analytics.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/StringUtil.h" #include "Common/StringUtil.h"
#include "Common/Thread.h"
namespace Common namespace Common
{ {
@ -147,6 +148,7 @@ void AnalyticsReporter::Send(AnalyticsReportBuilder&& report)
void AnalyticsReporter::ThreadProc() void AnalyticsReporter::ThreadProc()
{ {
Common::SetCurrentThreadName("Analytics");
while (true) while (true)
{ {
m_reporter_event.Wait(); m_reporter_event.Wait();