diff options
author | Silenio Quarti | 2002-03-15 20:52:15 +0000 |
---|---|---|
committer | Silenio Quarti | 2002-03-15 20:52:15 +0000 |
commit | a37b96f8bec003e9caad16e8d200c6551d348876 (patch) | |
tree | 0394ffaf54c71427db3d7a569b6c1c835cc60714 | |
parent | a4aef74de90b702fbc1cd7cb3beff21525f91758 (diff) | |
download | eclipse.platform.swt-a37b96f8bec003e9caad16e8d200c6551d348876.tar.gz eclipse.platform.swt-a37b96f8bec003e9caad16e8d200c6551d348876.tar.xz eclipse.platform.swt-a37b96f8bec003e9caad16e8d200c6551d348876.zip |
wake in UI thread
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java | 1 |
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);
}
|