aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-09-06 20:32:45 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-09-06 20:32:45 +0000
commitab21f18c95ce41f80685b71ea6814c573603b551 (patch)
tree9cc2c061045671271b95f2f93ece402b25587880
parentb2e76549083ee8bbec3714ffc7b5be0144ae65b2 (diff)
downloadnewlib-ab21f18c95ce41f80685b71ea6814c573603b551.zip
newlib-ab21f18c95ce41f80685b71ea6814c573603b551.tar.gz
newlib-ab21f18c95ce41f80685b71ea6814c573603b551.tar.bz2
* bsd_mutex.cc (_msleep): Disable resetting event object for now.
-rw-r--r--winsup/cygserver/ChangeLog4
-rw-r--r--winsup/cygserver/bsd_mutex.cc7
2 files changed, 11 insertions, 0 deletions
diff --git a/winsup/cygserver/ChangeLog b/winsup/cygserver/ChangeLog
index 8f373e0..207983e 100644
--- a/winsup/cygserver/ChangeLog
+++ b/winsup/cygserver/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-06 Corinna Vinschen <corinna@vinschen.de>
+
+ * bsd_mutex.cc (_msleep): Disable resetting event object for now.
+
2004-08-31 Corinna Vinschen <corinna@vinschen.de>
* sysv_shm.cc (kern_shmat): Add debug_printf's.
diff --git a/winsup/cygserver/bsd_mutex.cc b/winsup/cygserver/bsd_mutex.cc
index 37e15e2..bd802d0 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);