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
}
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
}