Browse Source
Prevent .NET from randomly calling WndProc in RequestCompositionBatchCommitAsync (#16804)
This method isn't reentrancy-friendly
pull/16835/head
Nikita Tsukanov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
src/Avalonia.Base/Rendering/Composition/Compositor.cs
|
|
|
@ -108,6 +108,7 @@ namespace Avalonia.Rendering.Composition |
|
|
|
Dispatcher.VerifyAccess(); |
|
|
|
if (_nextCommit == null) |
|
|
|
{ |
|
|
|
using var _ = NonPumpingLockHelper.Use(); |
|
|
|
_nextCommit = new (); |
|
|
|
var pending = _pendingBatch; |
|
|
|
if (pending != null) |
|
|
|
|