diff options
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r-- | winsup/cygwin/sync.h | 6 |
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; |