[xiph-cvs] cvs commit: icecast/src connection.c global.h stats.c
Jack Moffitt
jack at xiph.org
Sat Oct 20 15:48:30 PDT 2001
jack 01/10/20 15:48:30
Modified: src connection.c global.h stats.c
Log:
Fix icecast for changes in thread module regarding stacksize. For icecast,
the default stacksize is unchanged (8k) until further testing on Solaris
to determine if a larger value is needed.
Revision Changes Path
1.4 +3 -3 icecast/src/connection.c
Index: connection.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/connection.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- connection.c 2001/10/20 07:40:09 1.3
+++ connection.c 2001/10/20 22:48:29 1.4
@@ -216,7 +216,7 @@
for (i = 0; i < config->threadpool_size; i++) {
snprintf(buff, 64, "Connection Thread #%d", i);
- tid = thread_create(buff, _handle_connection, NULL, THREAD_ATTACHED);
+ tid = thread_create(buff, _handle_connection, NULL, ICE_DEFAULT_STACKSIZE, THREAD_ATTACHED);
_push_thread(&_conhands, tid);
}
}
@@ -364,7 +364,7 @@
sock_set_blocking(con->sock, SOCK_NONBLOCK);
- thread_create("Source Thread", source_main, (void *)source, THREAD_DETACHED);
+ thread_create("Source Thread", source_main, (void *)source, ICE_DEFAULT_STACKSIZE, THREAD_DETACHED);
continue;
} else if (parser->req_type == httpp_req_stats) {
@@ -385,7 +385,7 @@
stats->parser = parser;
stats->con = con;
- thread_create("Stats Connection", stats_connection, (void *)stats, THREAD_DETACHED);
+ thread_create("Stats Connection", stats_connection, (void *)stats, ICE_DEFAULT_STACKSIZE, THREAD_DETACHED);
continue;
} else if (parser->req_type == httpp_req_play || parser->req_type == httpp_req_get) {
1.2 +2 -0 icecast/src/global.h
Index: global.h
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/global.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- global.h 2001/09/10 02:21:51 1.1
+++ global.h 2001/10/20 22:48:29 1.2
@@ -6,6 +6,8 @@
#define ICE_RUNNING 1
#define ICE_HALTING 2
+#define ICE_DEFAULT_STACKSIZE 8192
+
typedef struct ice_global_tag
{
int serversock;
1.4 +1 -1 icecast/src/stats.c
Index: stats.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/stats.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- stats.c 2001/10/20 06:51:29 1.3
+++ stats.c 2001/10/20 22:48:29 1.4
@@ -74,7 +74,7 @@
/* fire off the stats thread */
_stats_running = 1;
- _stats_thread_id = thread_create("Stats Thread", _stats_thread, NULL, THREAD_ATTACHED);
+ _stats_thread_id = thread_create("Stats Thread", _stats_thread, NULL, ICE_DEFAULT_STACKSIZE, THREAD_ATTACHED);
}
void stats_shutdown()
--- >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