ntdll: Do not throw deadlock exceptions for Wine critical sections.
commit7520294840ac59fcc6b2f3d4a92ef160c43f87b5
authorZebediah Figura <zfigura@codeweavers.com>
Thu, 25 May 2023 21:39:45 +0000 (25 16:39 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 5 Jun 2023 12:01:07 +0000 (5 14:01 +0200)
treea80ef713073c1b74f52d5bedf324d3e0010dc660
parent47c8dcc96a68c29e54885d4a0b464f665fc766b4
ntdll: Do not throw deadlock exceptions for Wine critical sections.

This is actually a public debugging facility, but currently applies exclusively
to Wine internal locks. While we could expand this feature to all critical
sections, no application is known to depend on it, and the fact that it is a
debugging feature means it is not very likely we will ever find one.

As far as Wine is concerned, I believe this feature is unused. I have not heard
any mention of it in at least five years.

Moreover, we have a different tool for debugging critical section timeouts,
namely, the ERR messages in the same function. These messages provide just as
much information while being less destructive to the process state.
dlls/ntdll/sync.c