* grp.cc (pwdgrp::pwdgrp): Use initforce since the enclosing structure is
!NO_COPY.
+2005-04-05 Christopher Faylor <cgf@timesys.com>
+
+ * sync.h (muto::initforce): Force initialization even when name !=
+ NULL.
+ * grp.cc (pwdgrp::pwdgrp): Use initforce since the enclosing structure
+ is !NO_COPY.
+
2005-04-05 Christopher Faylor <cgf@timesys.com>
* sync.h (muto::operator int): New operator.
{
read = &pwdgrp::read_passwd;
parse = &pwdgrp::parse_passwd;
- pglock.init ("pwd_lock");
+ pglock.initforce ("pwd_lock");
}
pwdgrp::pwdgrp (__group32 *&gbuf) :
{
read = &pwdgrp::read_group;
parse = &pwdgrp::parse_group;
- pglock.init ("grp_lock");
+ pglock.initforce ("grp_lock");
}
struct __group32 *
void *tls; /* Tls of lock owner. */
// class muto *next;
+ muto *initforce (const char *s) {name = NULL; return init (s);}
/* The real constructor. */
muto *init (const char *) __attribute__ ((regparm (2)));