httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r956863 - /httpd/httpd/trunk/server/mpm/mpmt_os2/mpmt_os2_child.c
Date Tue, 22 Jun 2010 12:49:59 GMT
Author: bjh
Date: Tue Jun 22 12:49:59 2010
New Revision: 956863

URL: http://svn.apache.org/viewvc?rev=956863&view=rev
Log:
OS/2: Add support for ThreadStackSize.

Modified:
    httpd/httpd/trunk/server/mpm/mpmt_os2/mpmt_os2_child.c

Modified: httpd/httpd/trunk/server/mpm/mpmt_os2/mpmt_os2_child.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/mpmt_os2/mpmt_os2_child.c?rev=956863&r1=956862&r2=956863&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/mpmt_os2/mpmt_os2_child.c (original)
+++ httpd/httpd/trunk/server/mpm/mpmt_os2/mpmt_os2_child.c Tue Jun 22 12:49:59 2010
@@ -291,13 +291,14 @@ void ap_mpm_child_main(apr_pool_t *pconf
 void add_worker()
 {
     int thread_slot;
+    int stacksize = ap_thread_stacksize == 0 ? 128*1024 : ap_thread_stacksize;
 
     /* Find a free thread slot */
     for (thread_slot=0; thread_slot < HARD_THREAD_LIMIT; thread_slot++) {
         if (ap_scoreboard_image->servers[child_slot][thread_slot].status == SERVER_DEAD)
{
             ap_scoreboard_image->servers[child_slot][thread_slot].status = SERVER_STARTING;
             ap_scoreboard_image->servers[child_slot][thread_slot].tid =
-                _beginthread(worker_main, NULL, 128*1024, (void *)thread_slot);
+                _beginthread(worker_main, NULL, stacksize, (void *)thread_slot);
             break;
         }
     }



Mime
View raw message