httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Kasichainula <ma...@io.com>
Subject Re: Non-threadsafe functions used in threads? (1.3, 2.0)
Date Mon, 04 Oct 1999 19:01:54 GMT
On Tue, Sep 28, 1999 at 11:46:20AM +0200, Ralf S. Engelschall wrote:
> A list of acceptable functions for threaded environments you can find in SUSv2
> under http://www.opengroup.org/onlinepubs/007908799/xsh/threads.html
> 
> But, yes, Pthreads doesn't _require_ thread-safe functions unless
> _POSIX_THREAD_SAFE_FUNCTIONS is defined. This usually means you cannot rely on
> the existence of thread-safe functions or at least have a own fallback
> possibility in case _POSIX_THREAD_SAFE_FUNCTIONS is not defined.

Apparently, there are even two different #defines to indicate this.
You, Single Unix, and Linux's header files use
_POSIX_THREAD_SAFE_FUNCTIONS. This O'Reilly pthreads book mentions
_POSIX_REENTRANT_FUNCTIONS, and the X includes on this machine look
for both, as I guess we'll have to do.

-- 
Manoj Kasichainula - manojk@raleigh.ibm.com
IBM, Apache Development

Mime
View raw message