Optionally use thread-local objects for struct _reent members

Sebastian Huber sebastian.huber@embedded-brains.de
Mon Jan 10 16:26:53 GMT 2022

On 10/01/2022 13:56, Corinna Vinschen wrote:
>> The member access macros are incomplete. We would have to add macros for all
>> the struct _reent members. Would this be an approach acceptable for Newlib
>> integration?
> I think this would be acceptable, provided that the current
> implementation stays available.

The existing struct _reent implementation will be still the default. 
Targets will get a new configuration option (for example 
_REENT_THREAD_LOCAL) to use thread-local objects instead of members in a 
structure. There will be several of new _REENT_XZY(ptr) macros to enable 
this alternative implementation.

embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:

More information about the Newlib mailing list