Now all timers are events, there is no longer any need to wake up every 50 ms -

only wake up when an event happens.
This commit is contained in:
Nicholas Marriott
2009-11-05 08:48:15 +00:00
parent b58bf49e91
commit 38e13942ac
2 changed files with 1 additions and 9 deletions

View File

@ -207,15 +207,10 @@ error:
void
server_loop(void)
{
struct timeval tv;
memset(&tv, 0, sizeof tv);
tv.tv_usec = POLL_TIMEOUT * 1000;
while (!server_should_shutdown()) {
server_update_socket();
event_loopexit(&tv);
event_loopexit(NULL);
event_loop(EVLOOP_ONCE);
server_window_loop();