[plt-scheme] FFI + errno
At Wed, 9 Dec 2009 19:53:01 -0800, YC wrote:
> On Wed, Dec 9, 2009 at 10:07 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>
> >
> > I'll think more about how to solve this in the FFI, though. Most
> > problems like this can be solved with atomic mode, but `errno' is a
> > special case. Probably the FFI should provide more direct support for
> > getting the right `errno' value.
> >
> >
>
> Assuming Kevin's work with multicore is done - would this still be an issue
> at that time?
Yes, I think so.
> Perhaps a system thread can be instantiated and exposed via FFI so the FFI
> call can live on a separate thread from the vm's main thread?
I think users of the FFI probably need more control over which thread
is used for calling a foreign function.
Matthew