[gambit-list] Thread undocumented features...
Jeremie Lasalle Ratelle
pouexmachinax at gmail.com
Tue Sep 1 14:08:04 EDT 2009
>From _thread.scm
(define-prim (##thread-suspend! thread)
(##declare (not interrupts-enabled))
(macro-not-yet-implemented))
This is not implemented
-
thread-interrupt! allows you to pass a second argument which must be a void
returning
thunk that will be executed on thread restore.
What you want is ##thread-call which will put the result of a thunk executed
in another
thread with thread-interrupt! in the specific of a mutex, retrieve it and
return it.
In fact, there is a function doing exactly what you want :
##thread-continuation-capture
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090901/d997ab91/attachment.htm>
More information about the Gambit-list
mailing list