[plt-scheme] Q. about editor<%> internal-locks

From: John Clements (clements at brinckerhoff.org)
Date: Wed Oct 7 17:54:24 EDT 2009

On Oct 7, 2009, at 1:16 PM, Matthew Flatt wrote:

> At Wed, 7 Oct 2009 12:58:31 -0700, John Clements wrote:
>> On Oct 7, 2009, at 12:31 PM, Robby Findler wrote:
>>> Are you accessing the editor from more than one thread?
>> No.  In particular, the only references to this editor are
>> 1) it's embedded in a canvas which is part of a visible pane, and
>> 2) There's an "update" method that is called by only one thread.
> So the "one thread" in #2 is the same as the canvas's eventspace's
> handler thread?

Aha! No, it's not.  It's another thread. Based on the discussion in  
the messages that follow this one, I'm confident that "begin-edit- 
sequence" and "end-edit-sequence" will solve this problem.

I see now that the *very next section* after "Internal Locks" is  
"Editors and Threads."

I can claim (lamely) that ending the "Internal Locks" section with the  
sentence "See also Editors and Threads" would have helped me, but I  
think that's basically just a big fat RTFM to me.  I'm slightly  
comforted by the fact that Ryan appears not to have known this either.

Thanks for your patience.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2484 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20091007/17557ae7/attachment.p7s>

Posted on the users mailing list.