[xiph-cvs] cvs commit: icecast/src connection.c global.h stats.c

Jack Moffitt jack at xiph.org
Sat Oct 20 19:06:09 PDT 2001



jack        01/10/20 19:06:09

  Modified:    src      connection.c global.h stats.c
  Log:
  Revert stacksize stuff and changes for the thread module.

Revision  Changes    Path
1.5       +3 -3      icecast/src/connection.c

Index: connection.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/connection.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- connection.c	2001/10/20 22:48:29	1.4
+++ connection.c	2001/10/21 02:06:08	1.5
@@ -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, ICE_DEFAULT_STACKSIZE, THREAD_ATTACHED);
+		tid = thread_create(buff, _handle_connection, NULL, 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, ICE_DEFAULT_STACKSIZE, THREAD_DETACHED);
+				thread_create("Source Thread", source_main, (void *)source, 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, ICE_DEFAULT_STACKSIZE, THREAD_DETACHED);
+				thread_create("Stats Connection", stats_connection, (void *)stats, THREAD_DETACHED);
 
                                 continue;
                         } else if (parser->req_type == httpp_req_play || parser->req_type == httpp_req_get) {

1.3       +0 -2      icecast/src/global.h

Index: global.h
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/global.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- global.h	2001/10/20 22:48:29	1.2
+++ global.h	2001/10/21 02:06:08	1.3
@@ -6,8 +6,6 @@
 #define ICE_RUNNING 1
 #define ICE_HALTING 2
 
-#define ICE_DEFAULT_STACKSIZE 8192
-
 typedef struct ice_global_tag
 {
         int serversock;

1.5       +1 -1      icecast/src/stats.c

Index: stats.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/stats.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- stats.c	2001/10/20 22:48:29	1.4
+++ stats.c	2001/10/21 02:06:08	1.5
@@ -74,7 +74,7 @@
 
         /* fire off the stats thread */
         _stats_running = 1;
-	_stats_thread_id = thread_create("Stats Thread", _stats_thread, NULL, ICE_DEFAULT_STACKSIZE, THREAD_ATTACHED);
+	_stats_thread_id = thread_create("Stats Thread", _stats_thread, NULL, 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