Browse Source
Add thread name in DxgiConnection (#20505)
The thread name in WinUiCompositorConnection is DwmRenderTimerLoop
pull/20514/head
lindexi
2 weeks 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/Windows/Avalonia.Win32/DirectX/DxgiConnection.cs
|
|
|
@ -168,6 +168,7 @@ namespace Avalonia.Win32.DirectX |
|
|
|
}); |
|
|
|
thread.IsBackground = true; |
|
|
|
thread.SetApartmentState(System.Threading.ApartmentState.STA); |
|
|
|
thread.Name = "DxgiRenderTimerLoop"; |
|
|
|
thread.Start(); |
|
|
|
// block until
|
|
|
|
return tcs.Task.Result; |
|
|
|
|