- more fixes & improvements for pcap2wav windows build

This commit is contained in:
2018-12-24 13:01:38 +02:00
parent 9126b106f5
commit 24e5a83d21
6 changed files with 35 additions and 4 deletions
+10
View File
@@ -52,6 +52,16 @@ void ThreadHelper::setName(const std::string &name)
#endif
}
uint64_t ThreadHelper::getCurrentId()
{
#if defined(TARGET_WIN)
return static_cast<uint64_t>(GetCurrentThreadId());
#endif
#if defined(TARGET_LINUX)||defined(TARGET_OSX)
return static_cast<uint64_t>(pthread_self());
#endif
}
// ------------------- TimeHelper ---------------
using namespace std::chrono;