[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: syncExec happens only after a GUI event
|
Sorry, there's a typo in my snippet. getCurrent() should read getDefault()
since getCurrent() returns null in the computational thread. The problem
still persists however.
Cheers,
Shaun
Shaun Jackman wrote:
> Here's another interesting example. I also tried asyncExec and explicitly
> waking up the display and yielding to it, but the asyncExec still does not
> occur until a GUI event (like mouse movement) wakes it up.
>
> Display.getCurrent().asyncExec( new Runnable() { ... });
> Display.getCurrent().wake();
> Thread.yield();
>
> Cheers,
> Shaun