This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [RFC] statically initialize spu FILE values
Patrick Mansfield <patmans@us.ibm.com> wrote:
> > I basically agree. But unfortunately, correspondence between SPE
> > context and FILE is NOT managed in the current libspe implementation
> > (both 1 and 2), and in addition it's quite difficult to implement such
> > management routine w/ the current libspe specification because a
> > 'library callback' has no way to know which SPE context calls the
> > callback.
>
> By callback do you mean an assisted (or offload) call?
So called "library callback function handler" in libspe2 spec,
e.g. default C99/POSIX1 handlers in libspe2.
> So if there are multiple threads for a given process, each with its own
> SPE context, libspe must track which SPE context opened a file, if it is
> to close the file on completion of the context?
Yes, I think so.
--
(ASAYAMA Kazunori
(asayama@sm.sony.co.jp))
t