summaryrefslogtreecommitdiffstats
path: root/make/scripts/make-runtime-properties.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-03-27 15:06:04 +0100
committerSven Gothel <[email protected]>2020-04-06 13:25:24 +0200
commit9e8a24933e9f396406f895ec137d18aefb1c2fe8 (patch)
tree8954793adf6489249c10d2893e3827b43b933bb0 /make/scripts/make-runtime-properties.sh
parent0779f229b0e9538c640b18b9a4e095af1f5a35b3 (diff)
Bug 1398: Avoid AWT-AppKit blocking feedback flush deadlock and SetNSViewCmd on initial makeCurrent when offscreen
makeCurrent shall skip SetNSViewCmd for offscreen, i.e. refine criteria of nsViewChanged. Previous term enforced SetNSViewCmd on initial call as lastNSViewDescr was null. Expand first term to require an actual non null NSView. contextMadeCurrent must avoid blocking to wait for completion of our SetNSViewCmd on AppKit. AWT has procedures running on AppKit under certain situations, where it issues a feedback flush on AWTEDT (from Appkit) blocking. This in turn deadlocks our SetNSViewCmd waiting on the AppKit, as we are blocking the AWTEDT waiting for same command. Further avoiding other potential deadlocks, by adding a 500ms timeout. Also clearing the lastSetNSViewCmd field post wait, regardless, which avoid repeatitive SetNSViewCmd issuance on timeout. Note that the SetNSViewCmd, we failed to wait for eventually gets executed.
Diffstat (limited to 'make/scripts/make-runtime-properties.sh')
0 files changed, 0 insertions, 0 deletions