[gambit-list] about thread-interrupt!

Jeremie Lasalle Ratelle pouexmachinax at gmail.com
Mon Sep 28 17:07:07 EDT 2009

Ultimately ##thread-interrupt! calls ##thread-int! in _thread.scm

Thread-int! sets thread-result of interrupted thread to (lambda ()
(your-thunk) (##void)) and insert interrupted thread on run-queue.

thread-result is passed as second argument to thread-restore! and if you
in gambit.h , the last step is a jump to this procedure.

So it is executed in the interrupted thread. If interrupting thread and
interrupted thread are the same, then it is just a call to the function.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090928/d2e1ddfe/attachment.htm>

More information about the Gambit-list mailing list