Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Pfaff <tpfaff@gmx.net>2003-10-28 00:12:42 +0300
committerThomas Pfaff <tpfaff@gmx.net>2003-10-28 00:12:42 +0300
commit7cba834bf268e30820ec027298eb1b81830b17e6 (patch)
tree8c628f2fad3be6b3f858eccd172990d31baa55d2
parentbfe5ae413f342eb424ff2f812a2f4fbf1a992135 (diff)
* thread.h (fast_mutex::init): Initialize lock_counter.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/thread.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index cbc798001..0ad9a78ce 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-27 Thomas Pfaff <tpfaff@gmx.net>
+
+ * thread.h (fast_mutex::init): Initialize lock_counter.
+
2003-10-27 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (OBSOLETE_FUNCTION): Add tmpfile.
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index d6fffedb8..579bb184e 100644
--- a/winsup/cygwin/thread.h
+++ b/winsup/cygwin/thread.h
@@ -140,6 +140,7 @@ public:
bool init ()
{
+ lock_counter = 0;
win32_obj_id = ::CreateSemaphore (&sec_none_nih, 0, LONG_MAX, NULL);
if (!win32_obj_id)
{