[racket] the benefactor in THREAD-RESUME

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Nov 7 20:17:48 EST 2010

At Sun, 7 Nov 2010 21:52:16 +0000, Taylor R Campbell wrote:
> (Sorry for the duplicate -- I sent from the wrong address the first
> time.)
>    Date: Sun, 7 Nov 2010 14:27:11 -0700
>    From: Jay McCarthy <jay.mccarthy at gmail.com>
>    Read:
>    http://www.cs.utah.edu/plt/kill-safe/
> I read that, and grepped through the code, and the Racket 5.0 sources.
> Every use I found outside of some contrived test cases in Racket is of
> the form
> (thread-resume t (current-thread)).
> I understand the semantics of (thread-resume t1 t2), where t2 is not
> the current thread; the paper and documentation explain that.  What I
> don't understand is why one would ever do it.

So far, I don't think I've run into a case in practice where the second
argument to `thread-resume' wasn't `(current-thread)'.

Posted on the users mailing list.