[xiph-commits] r8112 - icecast/trunk/icecast/src
oddsock at motherfish-iii.xiph.org
oddsock at motherfish-iii.xiph.org
Tue Oct 26 20:29:57 PDT 2004
Author: oddsock
Date: 2004-10-26 20:29:56 -0700 (Tue, 26 Oct 2004)
New Revision: 8112
Modified:
icecast/trunk/icecast/src/slave.c
Log:
add volatile keywords to a few variables
reset max_interval back to 0 on slave initialization
Modified: icecast/trunk/icecast/src/slave.c
===================================================================
--- icecast/trunk/icecast/src/slave.c 2004-10-26 21:34:08 UTC (rev 8111)
+++ icecast/trunk/icecast/src/slave.c 2004-10-27 03:29:56 UTC (rev 8112)
@@ -62,8 +62,8 @@
static void *_slave_thread(void *arg);
thread_type *_slave_thread_id;
static int slave_running = 0;
-static unsigned int max_interval = 0;
-static int rescan_relays = 0;
+volatile static unsigned int max_interval = 0;
+volatile static int rescan_relays = 0;
relay_server *relay_free (relay_server *relay)
{
@@ -118,6 +118,7 @@
return;
slave_running = 1;
+ max_interval = 0;
_slave_thread_id = thread_create("Slave Thread", _slave_thread, NULL, THREAD_ATTACHED);
}
More information about the commits
mailing list