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>2002-08-16 23:41:39 +0400
committerChristopher Faylor <me@cgf.cx>2002-08-16 23:41:39 +0400
commitc7e2187a60c13d1263678e22361648bb5d663e14 (patch)
tree40c8c06f9f9e0b3c87ef766c2c581b6fd85c6ba4 /winsup/cygwin/sync.h
parent775275aac7f96c2fdccbefde960afd7eda079a7a (diff)
* Makefile.in: Add support for new malloc.o and renamed malloc_wrapper.o. Use
-fomit-frame-pointer for malloc.o compilation. * malloc_wrapper.cc: New file. Rename from malloc.cc. Add support for more malloc functions. Eliminate export_* calls. Just use straight malloc names. Remove unused argument from malloc lock functions. * cygwin.din: Just export straight malloc names. Add malloc_stats, malloc_trim, malloc_usable_size, mallopt, memalign, valloc. * dcrt0.cc (__cygwin_user): Eliminate export_* malloc entries. * fork.cc (fork_parent): Remove unused argument from malloc_lock argument. * malloc.cc: New file. Doug Lea's malloc v2.7.1. * cygmalloc.h: New file. * include/cygwin/version.h: Bump API_MINOR. * sync.h (muto::acquire): Use appropriate number for regparm attribute. (muto::reset): Ditto. (muto::release): Ditto.
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r--winsup/cygwin/sync.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h
index d50ae1763..9cd50c3ac 100644
--- a/winsup/cygwin/sync.h
+++ b/winsup/cygwin/sync.h
@@ -29,14 +29,14 @@ public:
#if 0 /* FIXME: See comment in sync.cc */
~muto ()
#endif
- int acquire (DWORD ms = INFINITE) __attribute__ ((regparm (1))); /* Acquire the lock. */
- int release (); /* Release the lock. */
+ int acquire (DWORD ms = INFINITE) __attribute__ ((regparm (2))); /* Acquire the lock. */
+ int release () __attribute__ ((regparm (1))); /* Release the lock. */
/* Return true if caller thread owns the lock. */
int ismine () {return tid == GetCurrentThreadId ();}
DWORD owner () {return tid;}
int unstable () {return !tid && (sync || waiters >= 0);}
- void reset ();
+ void reset () __attribute__ ((regparm (1)));
};
extern muto muto_start;