Re: Optionally use thread-local objects for struct _reent members
Sebastian Huber <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Hello, I just would like to give a short status update. With the recent patches using _REENT_GLOBAL is no longer required. The global state of Newlib is managed by dedicated objects (for example the FILE object list or the exit handlers). This enables us to use thread-local objects for all members of struct _reent. We should have a patch ready for review soon. It would help if we could make the _REENT_GLOBAL_STDIO_STREAMS option the default behaviour and remove the associated conditional code. It is currently enabled by Cygwin and RTEMS. I will send a patch to discuss this next week. We didn't work on the support for constructors/destructors for thread-local objects yet, see: https://www.openwall.com/lists/libc-coord/2022/01/21/1 My approach would be to first add a prototype implementation to Newlib using a dedicated linker set and then make a proposal for the ELF support. -- embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: [email protected] 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: https://embedded-brains.de/datenschutzerklaerung/