From ab21f18c95ce41f80685b71ea6814c573603b551 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 6 Sep 2004 20:32:45 +0000 Subject: * bsd_mutex.cc (_msleep): Disable resetting event object for now. --- winsup/cygserver/bsd_mutex.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'winsup/cygserver/bsd_mutex.cc') diff --git a/winsup/cygserver/bsd_mutex.cc b/winsup/cygserver/bsd_mutex.cc index 37e15e2e9..bd802d033 100644 --- a/winsup/cygserver/bsd_mutex.cc +++ b/winsup/cygserver/bsd_mutex.cc @@ -223,8 +223,15 @@ _msleep (void *ident, struct mtx *mtx, int priority, panic ("wait in msleep (%s) failed, %E", wmesg); break; } +#if 0 /* Dismiss event before entering mutex. */ + /* CV 2004-09-06, Don't dismiss for now. + TODO: Dismissing was meant to solve a problem with heavy load but + there's no proof that it helps. On the contrary, it breaks msgtest + in the testsuite. As long as I don't get a testcase to track that + down, I'll keep it that way. */ ResetEvent (evt); +#endif CloseHandle (evt); td->client->hold (); set_priority (old_priority); -- cgit v1.2.3