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 /winsup/cygwin/thread.h
parentbfe5ae413f342eb424ff2f812a2f4fbf1a992135 (diff)
* thread.h (fast_mutex::init): Initialize lock_counter.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h1
1 files changed, 1 insertions, 0 deletions
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)
{