[gambit-list] How best cancel a read/write-subu8vector or ##device-port-wait-for-input/output! from another thread gracefully? (for abort operation on active HTTP request etc.)

Mikael mikael.rcv at gmail.com
Wed Apr 3 14:17:51 EDT 2013


:D Shining!


2013/4/3 Marc Feeley <feeley at iro.umontreal.ca>
..

> After further investigation it appears that there is a simpler approach.
>  Simply defining
>
> (define (abort-io port)
>   (input-port-timeout-set! port -inf.0))
>
> is sufficient.  There is no need for the thread-interrupt! call because
> the functions input/output-port-timeout-set! contain the logic to force the
> waiting thread to wakeup.
>
> Marc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20130403/268535af/attachment.htm>


More information about the Gambit-list mailing list