[System.Xaml] Fix deadlock on exception in XamlBackgroundReader
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 8 Sep 2017 14:36:06 +0000 (16:36 +0200)
committerMarek Safar <marek.safar@gmail.com>
Mon, 11 Sep 2017 09:31:42 +0000 (11:31 +0200)
commit2d238eeb11ba7225e94651698d76c076b130f5c8
treed3d268101371ee90c6aee51ebdd88d4413b4048b
parentf98d0799d89401853f59e4427764932d633b8935
[System.Xaml] Fix deadlock on exception in XamlBackgroundReader

The ManualResetEvent wouldn't be signaled when an exception happens
in the reader loop so we'd deadlock in Read().

I'm still investigating where the exception comes from but this
should at least help unblocking CI.

https://bugzilla.xamarin.com/show_bug.cgi?id=46683
mcs/class/System.Xaml/System.Xaml/XamlBackgroundReader.cs