[xiph-cvs] cvs commit: icecast/src stats.c
Michael Smith
msmith at xiph.org
Thu Feb 19 17:25:29 PST 2004
msmith 04/02/19 20:25:29
Modified: src stats.c
Log:
Patch for preventing stats from staying around too long - stats thread should
only go to sleep when it has nothing to do.
Revision Changes Path
1.33 +2 -1 icecast/src/stats.c
Index: stats.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/stats.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- stats.c 29 Jan 2004 01:02:07 -0000 1.32
+++ stats.c 20 Feb 2004 01:25:28 -0000 1.33
@@ -461,7 +461,8 @@
thread_mutex_unlock(&_global_event_mutex);
}
- thread_sleep(300000);
+ if(global_event_queue == NULL) /* Only sleep if no events are pending */
+ thread_sleep(300000);
}
/* wake the other threads so they can shut down cleanly */
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list