diff options
author | Christopher Faylor <me@cgf.cx> | 2005-04-05 06:04:57 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-04-05 06:04:57 +0000 |
commit | 2f1086cbca7510a3adc9a55bf898961416729ad4 (patch) | |
tree | 399b88fefc02ce26e64f300fa6bff7573af4e478 /winsup/cygwin/grp.cc | |
parent | f45c299dbe093359db1f9bf4e06daa5129a17f16 (diff) | |
download | newlib-2f1086cbca7510a3adc9a55bf898961416729ad4.zip newlib-2f1086cbca7510a3adc9a55bf898961416729ad4.tar.gz newlib-2f1086cbca7510a3adc9a55bf898961416729ad4.tar.bz2 |
* 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.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc index 190d9cb..e793839 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 * |