Commit 7e36497e authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent 41bda87c
......@@ -13,6 +13,24 @@
//#define _CAN_USE_COM_THREADS
#endif
#ifdef WIN32
typedef DWORD ASC_THREAD_ID;
#else
typedef pthread_t ASC_THREAD_ID;
#endif
namespace NSThreads
{
static ASC_THREAD_ID GetCurrentThreadId()
{
#ifdef WIN32
return ::GetCurrentThreadId();
#else
return pthread_self();
#endif
}
}
namespace NSTimers
{
#ifdef _MAC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment