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 + + * thread.h (fast_mutex::init): Initialize lock_counter. + 2003-10-27 Corinna Vinschen * 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) {