Browse Source

win32 has no pthread_self

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
0c03bb2ff2
  1. 4
      src/util.cpp

4
src/util.cpp

@ -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…
Cancel
Save