summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/thread.h
diff options
context:
space:
mode:
authorThomas Pfaff <tpfaff@gmx.net>2003-10-27 21:12:42 +0000
committerThomas Pfaff <tpfaff@gmx.net>2003-10-27 21:12:42 +0000
commit7cba834bf268e30820ec027298eb1b81830b17e6 (patch)
tree8c628f2fad3be6b3f858eccd172990d31baa55d2 /winsup/cygwin/thread.h
parentbfe5ae413f342eb424ff2f812a2f4fbf1a992135 (diff)
downloadcygnal-7cba834bf268e30820ec027298eb1b81830b17e6.tar.gz
cygnal-7cba834bf268e30820ec027298eb1b81830b17e6.tar.bz2
cygnal-7cba834bf268e30820ec027298eb1b81830b17e6.zip
* 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)
{