projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed WIN32 support
[NeonServV5.git]
/
src
/
WHOHandler.c
diff --git
a/src/WHOHandler.c
b/src/WHOHandler.c
index f8769decabbce38aa79444156a7b1006b3450e83..28547188eb3f0e0f2e22213a98af3a344ccdf5c5 100644
(file)
--- a/
src/WHOHandler.c
+++ b/
src/WHOHandler.c
@@
-242,7
+242,7
@@
static void _recv_whohandler_354(struct ClientSocket *client, char **argv, unsig
struct WHOQueueEntry* entry = getNextWHOQueueEntry(client, type, 0);
if(entry == NULL) return;
#ifdef HAVE_THREADS
struct WHOQueueEntry* entry = getNextWHOQueueEntry(client, type, 0);
if(entry == NULL) return;
#ifdef HAVE_THREADS
- unsigned
long tid = syscall(SYS_gettid
);
+ unsigned
int tid = (unsigned int) pthread_self_tid(
);
while(!clientsocket_parseorder_top(tid)) {
usleep(1000); //1ms
}
while(!clientsocket_parseorder_top(tid)) {
usleep(1000); //1ms
}
@@
-338,7
+338,7
@@
static void _recv_whohandler_315(struct ClientSocket *client, char **argv, unsig
struct WHOQueueEntry* entry = getNextWHOQueueEntry(client, type, 0);
if(entry == NULL) return;
#ifdef HAVE_THREADS
struct WHOQueueEntry* entry = getNextWHOQueueEntry(client, type, 0);
if(entry == NULL) return;
#ifdef HAVE_THREADS
- unsigned
long tid = syscall(SYS_gettid
);
+ unsigned
int tid = (unsigned int) pthread_self_tid(
);
while(!clientsocket_parseorder_top(tid)) {
usleep(1000); //1ms
}
while(!clientsocket_parseorder_top(tid)) {
usleep(1000); //1ms
}