From 2bd22312df4fd5be14d8833a22ed7abbdcc35559 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 17 Feb 2002 04:59:55 +0000 Subject: * times.cc (hires::prime): Restore thread priority on failure condition. * uinfo.cc (uinfo_init): Use more robust method for determining if process was invoked from a non-cygwin process. * sync.h (muto::init): Eliminate "inheritance" parameter. (new_muto): Reflect removal of parameter. * sync.cc (muto::init): Ditto. * cygheap.cc (cygheap_init): Ditto. * debug.cc (threadname_init): Ditto. * exceptions.cc (events_init): Ditto. * malloc.cc (malloc_init): Ditto. * path.cc (cwdstuff::init): Ditto. * sigproc.cc (sigproc_init): Ditto. * grp.cc (group_lock): Use different method for locking with static member. (read_etc_group): REALLY ensure that read lock mutex is released. * passwd.cc (passwd_lock): Use different method for locking with static member. (read_etc_passwd): REALLY ensure that read lock mutex is released. * shared.cc (sec_user): Correct reversed inheritance test. --- winsup/cygwin/sync.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/sync.h') diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h index c710f8901..24c37dbfb 100644 --- a/winsup/cygwin/sync.h +++ b/winsup/cygwin/sync.h @@ -24,7 +24,7 @@ public: const char *name; /* The real constructor. */ - muto *init(int inh, const char *name) __attribute__ ((regparm (3))); + muto *init(const char *name) __attribute__ ((regparm (3))); #if 0 /* FIXME: See comment in sync.cc */ ~muto () @@ -42,8 +42,8 @@ public: extern muto muto_start; /* Use a statically allocated buffer as the storage for a muto */ -#define new_muto(__inh, __name) \ +#define new_muto(__name) \ ({ \ - static muto __mbuf NO_COPY; \ - __mbuf.init (__inh, __name); \ + static muto __mbuf __attribute__((nocommon)) __attribute__((section(".data_cygwin_nocopy"))); \ + __mbuf.init (__name); \ }) -- cgit v1.2.3