[plt-scheme] Q. about editor<%> internal-locks
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