You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by pc...@hyperreal.org on 1997/12/01 16:51:03 UTC

Re: os-windows/1168: APACHE_TLS cannot be used in modules on Windows95

[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]


Synopsis: APACHE_TLS cannot be used in modules on Windows95

State-Changed-From-To: feedback-analyzed
State-Changed-By: pcs
State-Changed-When: Mon Dec  1 07:51:01 PST 1997
State-Changed-Why:
There is a bug in MSVC++ which means you cannot use
__declspec(thread) in DLL's loaded with LoadLibrary().
Apache modules are loaded with LoadLibrary(), and
APACHE_TLS is defined as __declspec(), so this
means you cannot use APACHE_TLS in apache modules.

MS recommend you use the Tls*() functions instead for
thread-local storage. More details are in the MS Knowledge
Base, article 118816.