[plt-scheme] ffi & errno

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Jul 25 03:42:03 EDT 2008

On Jul 25, YC wrote:
> On Fri, Jul 25, 2008 at 12:23 AM, Eli Barzilay <eli at barzilay.org> wrote:
> 
> > On Jul 24, YC wrote:
> >
> > >
> > > Is this even close?  I imagine that it's possible for mzscheme
> > > to set errno before I retrieve the value...
> >
> > That's exactly the problem.
> >
> Given errno is thread local, could separate thread for ffi (such as
> the async ffi idea described in
> http://www.cs.brown.edu/pipermail/plt-scheme/2007-July/019446.html)
> work in such case?

One problem with this is finding a portable way of creating and
maintaining threads, and a second problem is accessing Scheme data
from the thread which can be unreliable (especially with 3m).

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.