Fixes #2073. Fixes regression introduced in v1.8.2: Nesting MainLoop.Invoke deadlocks#2083
Fixes #2073. Fixes regression introduced in v1.8.2: Nesting MainLoop.Invoke deadlocks#2083tig merged 1 commit intogui-cs:developfrom
MainLoop.Invoke deadlocks#2083Conversation
|
@BDisp sorry that I have been a bit out of the loop after reporting this (have been on half term holidays). I dug into the locking situation and found this issue. This PR removes that logic. It seems to fix #2073 and restore old behaviour. Let me know if this is not the right fix. I'm not sure how this impacts your other changes in invoke. Let me know. |
|
Thanks @tznind, before Tuesday I can't, holydays too. But I think your PR fix it since it run the idle outside the lock. |
|
I'm confused by the comments above. Do both of you agree this PR should be merged now? |
Perhaps yes, but I can't test it before Tuesday. |
|
I confirm that this PR fix the #2073 issue. I already closed my PR #2075 for this to be accept. I only submitted the PR tznind#133 with a unit test for this issue won't happen again. |
MainLoop.Invoke deadlocks
Fixes #2073 - Callback method execution
RunIdle()no longer runs inside a lock onidleHandlersLockPull Request checklist:
CTRL-K-Dto automatically reformat your files before committing.dotnet testbefore commit///style comments)