[plt-scheme] ffi & errno
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!