Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] When using adapters that make changes in UI thread, beware of deadlocks!
[CDO] When using adapters that make changes in UI thread, beware of deadlocks! [message #876427] Thu, 24 May 2012 15:21
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 185
Registered: May 2010
Senior Member

Hi huys !

Just to point out a deadlock issue we noticed while using CDO with EEF,
that can occur with any adapter that makes UI thing in syncExec() - more
explanations in the issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=380548 .

Remember that if you use adapters, you should always :
- use asyncExec() to allow the cdo INVALIDATION thread to release the
lock on the CDOTransaciton
- use syncExec(), but inside a new thread (for the same reasons).

Cheers,
Alex
Previous Topic:Derived EReference is not available to Derived EAttribute
Next Topic:[Xcore] Setting label feature
Goto Forum:
  


Current Time: Mon Dec 22 12:19:33 GMT 2014

Powered by FUDForum. Page generated in 0.03169 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software