X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fmain.h;h=d14869e11564df1426fe6b2a56967b18659f8bd3;hp=6a2a99f575a38f666adb593a2a1b4d9f38b45684;hb=2b9e305af713f0960ac0cd7645af3e0ef85a8515;hpb=740649d6f206dc1f65e7550a842cf298fac7cb36 diff --git a/src/main.h b/src/main.h index 6a2a99f..d14869e 100644 --- a/src/main.h +++ b/src/main.h @@ -21,7 +21,6 @@ #define NEONSERV_VERSION "5.3" #define VERSION_PATCHLEVEL 543 -#include #include #include #include @@ -31,6 +30,7 @@ #include #include #else +#include #include #include #include @@ -45,7 +45,11 @@ #include #ifdef HAVE_THREADS #include -#include +#ifdef WIN32 +#define pthread_self_tid() pthread_self().p +#else +#define pthread_self_tid() pthread_self() +#endif #define THREAD_MUTEX_INIT(var) { \ pthread_mutexattr_t mutex_attr; \ pthread_mutexattr_init(&mutex_attr);\ @@ -136,6 +140,8 @@ extern int statistics_enabled; extern int running_threads; extern pthread_mutex_t cache_sync; extern pthread_mutex_t whohandler_sync, whohandler_mass_sync; + +int getCurrentThreadID(); #endif int stricmp (const char *s1, const char *s2);