Reentrancy support for multiprocessor systems

Likely, Grant Grant.Likely@gdcanada.com
Tue Mar 18 20:19:00 GMT 2003


Okay, I've compiled the library with __DYNAMIC_REENT__ defined, but the
function __getreent() in libc/reent/getreent.c is still being compiled in
because there is no way to conditionally remove it.  I'm going to patch it
out in my source tree as a work around, but I'm wondering if it should not
compiled in when __DYNAMIC_REENT__ is set.

Thanks,
g.

--> This is already done for you in libc/include/sys/reent.h.  If you set
the
> __DYNAMIC_REENT__
> flag on while compiling newlib, then all references to _REENT will call a
> function __getreent().  You will need to supply a version of this function
> that
> can figure out which thread it is running under and pass back the
> appropriate
> reentrancy structure.



More information about the Newlib mailing list