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

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Oct 7 17:18:57 EDT 2009

At Wed, 7 Oct 2009 15:06:28 -0600, Matthew Flatt wrote:
> At Wed, 7 Oct 2009 16:56:05 -0400, Ryan Culpepper wrote:
> > What's the right way to modify the editor in a thread other than the  
> > eventspace handler thread?
> 
> Wrap the modifications with `begin-edit-sequence' and
> `end-edit-sequence'. An edit sequence takes a lock that is also used by
> the repaint method of an editor.

See also

 http://docs.plt-scheme.org/gui/editor-overview.html#%28part._editorthreads%29



Posted on the users mailing list.