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 11:21
Alex Lagarde is currently offline Alex Lagarde
Messages: 177
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: Thu Jul 31 03:40:05 EDT 2014

Powered by FUDForum. Page generated in 3.82597 seconds