]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Steal a play from mod_proxy, which taught us this Win32 lesson. Threaded
authorWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 2 Oct 2001 16:11:13 +0000 (16:11 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 2 Oct 2001 16:11:13 +0000 (16:11 +0000)
commitd360a2e4c8295f5ac730e9026dd149353b395f4b
treeb3a75382692ceceffe445aeb8b7e39bf1f2987c0
parent9d507d9bfcaae903085dcc82a13292e116c205d1
  Steal a play from mod_proxy, which taught us this Win32 lesson.  Threaded
  local storage must be allocated with the Tls*() family of functions, or
  the dynamically loaded module _will_ clobber our clib's (msvcrt's) own
  thread saftey stacks.

  I _don't_ know what the other multithread platforms require in terms of
  initialization.  OS2/Netware maintainers can steal the idea from the
  Win32 get_cur_unique_id() implementation, to initialize other copies
  on the fly (if required.)  They may already call child_init for every
  thread, so child_init could call the master_init to set up this thread's
  variables.  Remember that the get_cur_unique_id() applies to straight
  un*x fork implementations as well, so protect with #ifdef PLAT sections.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91233 13f79535-47bb-0310-9956-ffa450edef68
src/modules/standard/mod_unique_id.c
src/modules/standard/mod_vhost_alias.c