ntdll: Simplify critical section timeout logic.
commitead421b744fd311be9b0c3e7c388e89fe377773f
authorZebediah Figura <zfigura@codeweavers.com>
Thu, 25 May 2023 22:30:13 +0000 (25 17:30 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 5 Jun 2023 12:01:07 +0000 (5 14:01 +0200)
tree6f4b601003da613f4b3eb0df91ffcfe5a311fb66
parent7520294840ac59fcc6b2f3d4a92ef160c43f87b5
ntdll: Simplify critical section timeout logic.

Make it more consistent, as well. Currently we alternate between 5 seconds and
60; instead just make it a consistent 60 after the first wait.

When +relay is on, always wait for 300 seconds, instead of alternating between
60 and 300.
dlls/ntdll/sync.c