[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [platform-swt-dev] SWT_AWT on Mac, first impressions
|
- From: Christopher Deckers <chrriis@xxxxxxxxx>
- Date: Thu, 1 Oct 2009 22:37:33 +0200
- Delivered-to: platform-swt-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=H2MYoXV5SM8KYT8WZzqnN8lC7iWbmH2JiY8Jqufy9s4=; b=pZOf3UBqltVTqFvH5i1rL6YK0GrcnGuYSIXql50LGJYcegWYShWnNNn19cfPX4UikB 0N23c1HWejIhDG1e3OPDaP8p8Vd54NqmkMSOyZP5XmtHwj9bE2kKCyWzjycKkCh1M6pl r0n7iq8L5627ZDofydCCK/XUNSVZNVHitbMZA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LPafXeKNa3X8F3LA7g0S9whXXTvpsDLOeinjAXg8Cihq7M/ceOSw9ewIeJcvNmB5WV Fb8G6Xvs8iutWKAqOBhjw3vUCcZvW4Gus0rzEkZDghPuVjXIRZUd8Cc/Vmhbzttl2z9t bJT2MYEx4KE4HFS/E83iwyFQGwoJ4z9O1svGo=
Hi all,
Analyzing some thread dumps because of a freeze, we find something
that I have not seen on Windows/Linux.
The general pattern, as far as I understand SWT_AWT, is that you would
expect to integrate an SWT widget and call methods on it.
You would most likely use "display.asyncExec(r)" unless your UI wants
a result back in which case you would use "display.syncExec(r)".
In our case, our AWT Event Queue thread is stuck on
"display.syncExec(r)" and the SWT event pump is stuck waiting after
AWT:
Look at this:
"Thread-0" daemon prio=5 tid=0x0000000101848000 nid=0x7fff7062c700
runnable [0x00007fff5fbfa000]
java.lang.Thread.State: RUNNABLE
at apple.awt.CToolkit.doAWTRunLoop(Native Method)
at apple.awt.CToolkit.invokeAndWait(CToolkit.java:1112)
at apple.awt.CToolkit.invokeAndWait(CToolkit.java:1093)
at apple.awt.ComponentModel.handlePaint(ComponentModel.java:323)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4349)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4426)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:101)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3159)
Is this something that happens only on Cocoa? Is it normal that the
SWT/thread0 waits after the AWT event thread?
-Christopher