win32 has no pthread_self

This commit is contained in:
Miguel Freitas 2014-07-07 22:45:29 -03:00
parent ec2694bf0d
commit 0c03bb2ff2

View File

@ -98,7 +98,11 @@ void locking_callback(int mode, int i, const char* file, int line)
static unsigned long id_callback(void)
{
#if defined(WIN32)
return ((unsigned long)GetCurrentThreadId());
#else
return ((unsigned long)pthread_self());
#endif
}
LockedPageManager LockedPageManager::instance;