1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-26 19:01:35 +03:00

The final commit to achieve a quality release. We cannot use CreateThread

on Win32 when using the clib; msvcrt has its own initialization and
  destruction, so it needs its own turn.  _createthreadex is the same but
  different - it's implemented by msvcrt and causes all the appropriate
  setup and teardown to occur.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93385 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William A. Rowe Jr
2002-02-13 03:33:34 +00:00
parent 86d75cbb01
commit 1e4af39ee0

View File

@@ -642,8 +642,8 @@ static void __stdcall service_nt_main_fn(DWORD argc, LPTSTR *argv)
{
CloseHandle(hPipeWrite);
hPipeWrite = hDup;
thread = CreateThread(NULL, 0, service_stderr_thread,
(LPVOID) hPipeRead, 0, &threadid);
thread = (HANDLE) _beginthreadex(NULL, 0, service_stderr_thread,
(LPVOID) hPipeRead, 0, &threadid);
if (thread)
{
FILE *fl, flip;
@@ -875,7 +875,7 @@ apr_status_t mpm_service_to_start(const char **display_name)
globdat.service_init = CreateEvent(NULL, FALSE, FALSE, NULL);
globdat.service_term = CreateEvent(NULL, FALSE, FALSE, NULL);
if (globdat.service_init)
globdat.service_thread = CreateThread(NULL, 0,
globdat.service_thread = (HANDLE) _beginthreadex(NULL, 0,
service_nt_dispatch_thread,
NULL, 0,
&globdat.service_thread_id);
@@ -887,9 +887,9 @@ apr_status_t mpm_service_to_start(const char **display_name)
globdat.service_init = CreateEvent(NULL, FALSE, FALSE, NULL);
if (globdat.service_init)
globdat.service_thread = CreateThread(NULL, 0,
globdat.service_thread = (HANDLE) _beginthreadex(NULL, 0,
monitor_service_9x_thread,
(LPVOID) mpm_service_name, 0,
(LPVOID) mpm_service_name, 0,
&globdat.service_thread_id);
}