Summary: | proper concurrency control instead of dubious sleeping | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Jörg Kubitz <jkubitz-eclipse> |
Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | wim.jongman |
Version: | 4.21 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=574562 https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/182619 |
||
Whiteboard: |
Description
Jörg Kubitz
2021-06-30 03:14:31 EDT
(In reply to Jörg Kubitz from comment #0) Thanks for the analysis. IIUC: wakeup() does not work and it's replacement is asynExec(null)? (In reply to Wim Jongman from comment #1) > IIUC: wakeup() does not work and it's replacement is asynExec(null)? Thats what the commits of bug 188320 suggest. I did not validate it. (In reply to Jörg Kubitz from comment #2) > (In reply to Wim Jongman from comment #1) > > IIUC: wakeup() does not work and it's replacement is asynExec(null)? > > Thats what the commits of bug 188320 suggest. I did not validate it. Ok, got it. So your suggested plan is to replace all Thread.sleep with fDisplay.sleep. Then wake up by using a fixed wakeup() OR, if that can't be done, use asyncExec(null) to wake up. (In reply to Wim Jongman from comment #3) > Ok, got it. So your suggested plan is to replace all Thread.sleep with > fDisplay.sleep. NO!! That two sleeps are totally different things. I suggest to remove the single Thread.sleep (see commit 182619) and use fDisplay.asyncExec(null) instead of wakeup. Optional fix wakeup (bug 574562) too. |