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 08:48:02 +0400
committerChristopher Faylor <me@cgf.cx>2005-04-05 08:48:02 +0400
commitf45c299dbe093359db1f9bf4e06daa5129a17f16 (patch)
treef772869920739181209455cd2e2dce444986b5d2 /winsup/cygwin/sync.h
parent322c131f9f8ec512b0b319aa383d70f8c8e60fbd (diff)
* sync.h (muto::initforce): Force initialization even when name != NULL.
* grp.cc (pwdgrp::pwdgrp): Use initforce since the enclosing structure is !NO_COPY.
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r--winsup/cygwin/sync.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h
index 441892a08..13fa33caf 100644
--- a/winsup/cygwin/sync.h
+++ b/winsup/cygwin/sync.h
@@ -28,6 +28,7 @@ public:
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)));