Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Display.asyncExec and UI queue
Display.asyncExec and UI queue [message #452727] Wed, 23 March 2005 20:30 Go to next message
Roberto Scaramuzzi is currently offline Roberto ScaramuzziFriend
Messages: 7
Registered: July 2009
Junior Member
Lets's say I have the following code in a non-UI thread:

Display.getDefault().asyncExec(runnable0);
Display.getDefault().asyncExec(runnable1);

Is runnable0.run() guaranteed to execute before runnable1.run() in the UI
thread? The Javadoc for asyncExec does not say either way.
Re: Display.asyncExec and UI queue [message #452765 is a reply to message #452727] Thu, 24 March 2005 15:15 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Yes, they are queued in the order that they're async'd.

Grant

"Roberto Scaramuzzi" <birdo@parasoft.com> wrote in message
news:705ad893dd98c6dc1ebb4ff03b418471$1@www.eclipse.org...
> Lets's say I have the following code in a non-UI thread:
>
> Display.getDefault().asyncExec(runnable0);
> Display.getDefault().asyncExec(runnable1);
>
> Is runnable0.run() guaranteed to execute before runnable1.run() in the UI
> thread? The Javadoc for asyncExec does not say either way.
>
Previous Topic:Using win32 Com/ActiveX (Internet Explorer) with SWT
Next Topic:Drag and Drop files to RCP app not working on Linux?
Goto Forum:
  


Current Time: Thu Apr 25 06:21:57 GMT 2024

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

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

Back to the top