Hi all!
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
continuation?
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)))))))
(thread-start! t)
(thread-sleep! 0.5)
(thread-interrupt!/suspend! t)
(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
it's stack.
Thanks!
--
David
Hi,
here's a trivial question, but I couldn't find it in the documentation.
The documentation says that Gambit has support for srfi 9. However
none of the procedures seem implemented. What am I doing wrong?
michele