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:
authorChristopher Faylor <me@cgf.cx>2005-04-05 10:04:57 +0400
committerChristopher Faylor <me@cgf.cx>2005-04-05 10:04:57 +0400
commit2f1086cbca7510a3adc9a55bf898961416729ad4 (patch)
tree399b88fefc02ce26e64f300fa6bff7573af4e478 /winsup/cygwin/grp.cc
parentf45c299dbe093359db1f9bf4e06daa5129a17f16 (diff)
* sync.h (muto::initforce): Delete flawed implementation.
* pwdgrp.h (pwdgrp::pglock): Make static. * grp.cc (pwdgrp::pwdgrp): Eliminate use of initforce.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r--winsup/cygwin/grp.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc
index 190d9cb26..e79383999 100644
--- a/winsup/cygwin/grp.cc
+++ b/winsup/cygwin/grp.cc
@@ -106,12 +106,14 @@ pwdgrp::read_group ()
return;
}
+muto NO_COPY pwdgrp::pglock;
+
pwdgrp::pwdgrp (passwd *&pbuf) :
pwdgrp_buf_elem_size (sizeof (*pbuf)), passwd_buf (&pbuf)
{
read = &pwdgrp::read_passwd;
parse = &pwdgrp::parse_passwd;
- pglock.initforce ("pwd_lock");
+ pglock.init ("pglock");
}
pwdgrp::pwdgrp (__group32 *&gbuf) :
@@ -119,7 +121,7 @@ pwdgrp::pwdgrp (__group32 *&gbuf) :
{
read = &pwdgrp::read_group;
parse = &pwdgrp::parse_group;
- pglock.initforce ("grp_lock");
+ pglock.init ("pglock");
}
struct __group32 *