Thread-safe questions in configure

Started by Peter Eisentrautover 22 years ago2 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

I have two questions about the support for thread-safe clients in
configure:

configure sets NEED_REENTRANT_FUNC_NAMES=no, overwriting the template
setting. Why?

The check for reentrant functions says:

# Include special flags if threads are enabled _and_ if required for
# threading on this platform. Some platforms have *_r functions but
# their natively named funcs are threadsafe, and should be used instead.

But the actual check does not check if "threads are enabled", only if it's
required on the platform (which doesn't work -- see above).

Is this some kind of transition state "to be fixed later"?

--
Peter Eisentraut peter_e@gmx.net

#2Bruce Momjian
bruce@momjian.us
In reply to: Peter Eisentraut (#1)
Re: Thread-safe questions in configure

Peter Eisentraut wrote:

I have two questions about the support for thread-safe clients in
configure:

configure sets NEED_REENTRANT_FUNC_NAMES=no, overwriting the template
setting. Why?

Forgot to remove it when I moved the stuff to templates.

The check for reentrant functions says:

# Include special flags if threads are enabled _and_ if required for
# threading on this platform. Some platforms have *_r functions but
# their natively named funcs are threadsafe, and should be used instead.

But the actual check does not check if "threads are enabled", only if it's
required on the platform (which doesn't work -- see above).

Is this some kind of transition state "to be fixed later"?

The only transition state is in my head. :-)

Patch attached and applied.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Attachments:

/bjm/difftext/plainDownload+14-16