mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-24 21:44:17 +00:00
win32 has no pthread_self
This commit is contained in:
parent
ec2694bf0d
commit
0c03bb2ff2
@ -98,7 +98,11 @@ void locking_callback(int mode, int i, const char* file, int line)
|
|||||||
|
|
||||||
static unsigned long id_callback(void)
|
static unsigned long id_callback(void)
|
||||||
{
|
{
|
||||||
|
#if defined(WIN32)
|
||||||
|
return ((unsigned long)GetCurrentThreadId());
|
||||||
|
#else
|
||||||
return ((unsigned long)pthread_self());
|
return ((unsigned long)pthread_self());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
LockedPageManager LockedPageManager::instance;
|
LockedPageManager LockedPageManager::instance;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user