[racket] scheme_call_enable_break

From: Laurent (laurent.orseau at gmail.com)
Date: Sun Apr 21 12:30:44 EDT 2013

Is it possible to use scheme_call_enable_break [1] with a non-primitive
Racket procedure?

In particular, I'd like to use it with shawnpresser's unix domain socket
package [2] and its `accept' function, but I'm not sure how to make one
work with the other.

I cannot really use the example of tcp-connect/enable-break since these are
both Racket's C code and not FFI code.

My current stab at it is:
  (_fun _pointer _int (_list i _scheme) -> _scheme)

but instead of _pointer I'd need something like a racket primitive C type.

Thanks,
Laurent

[1]
http://docs.racket-lang.org/inside/threads.html#%28cpp._scheme_call_enable_break%29
[2]
http://planet.racket-lang.org/display.ss?package=racket-unix-sockets.plt&owner=shawnpresser
(probably derived from Ryan's db collection), with a usage example here:
https://gist.github.com/Metaxal/5426707
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130421/e8768575/attachment.html>

Posted on the users mailing list.