Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2002-03-15 20:52:15 +0000
committerSilenio Quarti2002-03-15 20:52:15 +0000
commita37b96f8bec003e9caad16e8d200c6551d348876 (patch)
tree0394ffaf54c71427db3d7a569b6c1c835cc60714
parenta4aef74de90b702fbc1cd7cb3beff21525f91758 (diff)
downloadeclipse.platform.swt-a37b96f8bec003e9caad16e8d200c6551d348876.tar.gz
eclipse.platform.swt-a37b96f8bec003e9caad16e8d200c6551d348876.tar.xz
eclipse.platform.swt-a37b96f8bec003e9caad16e8d200c6551d348876.zip
wake in UI thread
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java
index 3317f3e9eb..f25b8047a3 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java
@@ -1918,6 +1918,7 @@ public void update () {
*/
public void wake () {
if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);
+ if (thread == Thread.currentThread ()) return;
/* Write a single byte to the wake up pipe */
while (OS.write (write_fd, wake_buffer, 1) != 1);
}

Back to the top