This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: How to use __DYNAMIC_REENT__ correctly in multithreaded applications ?
- From: "KJK::Hyperion" <noog at libero dot it>
- To: Thomas Pfaff <tpfaff at gmx dot net>
- Cc: newlib at sources dot redhat dot com
- Date: Mon, 18 Aug 2003 22:04:45 +0200
- Subject: Re: How to use __DYNAMIC_REENT__ correctly in multithreaded applications ?
At 17.10 18/08/2003, Thomas Pfaff wrote:
some time ago i have added a __DYNAMIC_REENT__ to the cygwin part of
config.h. The main purpose was to get thread safe errnos (without this
define errno is stored process global in _impure_ptr).
it's a problem in newlib' design that I've noted too. It has a single
reentrancy structure, while it would need at least two (global and thread-local)