You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2013/07/20 11:50:50 UTC

[jira] [Closed] (CAY-1852) Straighten thread model and synchronization in the Modeler

     [ https://issues.apache.org/jira/browse/CAY-1852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1852.
--------------------------------

    Resolution: Fixed

Done. Hopefully this does not result in the Modeler meltdown.

Also fixed a few GUI invocations previously done from threads other than EventDispatchThread.
                
> Straighten thread model and synchronization in the Modeler
> ----------------------------------------------------------
>
>                 Key: CAY-1852
>                 URL: https://issues.apache.org/jira/browse/CAY-1852
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Modeler
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>             Fix For: 3.2M2
>
>
> Lots of synchronization in the Modeler code points to our earlier misunderstanding of Swing single-thread GUI update model [1]. We should remove synchronized blocks from the UI code, and at the same time ensure SwingUtilities.invokeLater is used from other threads when updating the GUI. Most notably - ProjectWatchdog thread.
> [1] http://docs.oracle.com/javase/tutorial/uiswing/concurrency/dispatch.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira