_D_REENTRANT is a feature that is fully supported in linux from glibc 2.x
.. as long as you specify this while compiling libc-based programs when
using multi-threading you're fine.

This is an issue that was present in more like 1995/1996, and has been
resolved since (by introducing the -D_REENTRANT).

Presumeably, in windows, this is the same as using the multithreaded DLL
system lib instead of the single-threaded system lib, and seen as Axis
already uses this, it is a non-issue.

By the way, due to the fact that Axis *must* use the 'multithreaded DLL'
systtem lib in windows (due to cross-DLL free() and malloc()'s), if you
are creating a service for Axis using, say, MySQl, then this lib must also
be compiled as 'multithreaded DLL', otherwise you get lots of link errors.
This may be a FAQ as MySQL doesn't ship with this lib, only with the
static 'multithreaded' lib.

On Tue, 11 Jan 2005, John Hawkins wrote:

> Hi Folks,
> 
> Still looking into errno !
> After finding yet another issue that was solved by getting errno. I want 
> to use it but it isn't thread-safe. Looking here -> 
> http://httpd.apache.org/docs-2.0/developer/thread_safety.html
> It gives the recommendation of "make sure your module or library defines 
> _REENTRANT or is compiled with -D_REENTRANT. "
> 
> It seems fair enough but has anyone had any experience with using this ?
> 
> John Hawkins
> 
> 

Reply via email to