mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58045 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
41bda87c43
commit
7e36497e15
@ -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
|
||||
|
||||
Reference in New Issue
Block a user