[gambit-list] Thread undocumented features...
sthilaid at iro.umontreal.ca
Tue Sep 1 13:58:17 EDT 2009
I address this message to Marc, but I thought it might interest others so I
cc'ed it to the gambit list ;).
What is the difference between the undocumented thread-interrupt! and
thread-suspend! functions? Is it possible to retrieve an interrupted thread's
Basically I want to know if its possible to do something like:
(let ((t (make-thread
(lambda () (let loop ((i 0)) (write 'o_O) (loop (+ i 1)))))))
(let ((k (get-the-continuation t)))
(continuation-graft k (lambda (r) i))))
I don't know if this pseudo code is clear enough to illustrate my needs? I'd
like to stop another thread and use continuation-graft to execute some code on
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 262 bytes
Desc: OpenPGP digital signature
More information about the Gambit-list