Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Resolving deadlocks through UILockListener/UISynchronizer
Resolving deadlocks through UILockListener/UISynchronizer [message #493897] Wed, 28 October 2009 12:17 Go to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Hello rap people,

I have a situation, where the UIThread is blocked by a call to
ThreadJob#joinRun via JobManager#beginRule.

RCP solves this kind of a deadlock with help of UISynchronizer and
UILockListener.

In RAP there's no such a mechanism present. The code in Workbench#runUI
is commented out.

Cheers, Dmitry
Re: Resolving deadlocks through UILockListener/UISynchronizer [message #494146 is a reply to message #493897] Thu, 29 October 2009 11:24 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
The reason why UISynchronizer and UILockListener aren't present in
RAP is that RWT currently misses the Synchronizer code from SWT.

These two bugs are most likely also affected:
* 280829: [Display] calling syncExec/asyncExec(null)
behaves differently in SWT
https://bugs.eclipse.org/bugs/show_bug.cgi?id=280829
* 283490: Display.syncExec() leads to deadlock
https://bugs.eclipse.org/bugs/show_bug.cgi?id=283490

Chances are we can use the Synchronizer code from SWT. It compiles
almost immediately. The tricky part is to weave in the UICallback
mechanism. Once we are there, the Workbench parts should also work
as expected.

Regards,
Rüdiger

Dmitry Pryadkin wrote:
> Hello rap people,
>
> I have a situation, where the UIThread is blocked by a call to
> ThreadJob#joinRun via JobManager#beginRule.
>
> RCP solves this kind of a deadlock with help of UISynchronizer and
> UILockListener.
>
> In RAP there's no such a mechanism present. The code in Workbench#runUI
> is commented out.
>
> Cheers, Dmitry
Previous Topic:Riena's Ridgets and RAP
Next Topic:Design Question: How to integrate User Actions into the Workbench (on MenuBar)?
Goto Forum:
  


Current Time: Tue Apr 23 16:29:30 GMT 2024

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

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

Back to the top