Subversion Repositories Tewi

Rev

Rev 212 | Rev 214 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 212 Rev 213
Line 1... Line 1...
1
/* $Id: server.c 212 2024-10-02 17:44:55Z nishi $ */
1
/* $Id: server.c 213 2024-10-02 17:45:40Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 911... Line 911...
911
extern int running;
911
extern int running;
912
 
912
 
913
void tw_server_loop(void) {
913
void tw_server_loop(void) {
914
	int i;
914
	int i;
915
#ifndef USE_POLL
915
#ifndef USE_POLL
916
		fd_set fdset;
916
	fd_set fdset;
917
		struct timeval tv;
917
	struct timeval tv;
918
#endif
918
#endif
919
#if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER)
919
#if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER)
920
	struct thread_entry threads[2048];
920
	struct thread_entry threads[2048];
921
	for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) {
921
	for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) {
922
		threads[i].used = false;
922
		threads[i].used = false;