[racket-dev] blocked on a mzrt-sema that gets collected: okay?

From: John Clements (clements at brinckerhoff.org)
Date: Tue Oct 4 16:49:43 EDT 2011

On Oct 4, 2011, at 1:48 PM, Matthew Flatt wrote:

> At Tue, 4 Oct 2011 13:34:17 -0700, John Clements wrote:
>> I conjecture that if a place is blocked on a mzrt_sema semaphore and if that 
>> semaphore is then collected using a call to mzrt_sema_destroy(), then the 
>> waiting thread will simply wait forever. Is that correct? 
> 
> Not necessarily; it may crash. You're not allowed to destroy a
> semaphore that is in use.

Okay, thanks.

John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20111004/f8e04e90/attachment.p7s>

Posted on the dev mailing list.