summaryrefslogtreecommitdiffstats
path: root/winsup/cygserver/bsd_mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygserver/bsd_mutex.h')
-rw-r--r--winsup/cygserver/bsd_mutex.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygserver/bsd_mutex.h b/winsup/cygserver/bsd_mutex.h
index 3b07bf3c6..c9f501576 100644
--- a/winsup/cygserver/bsd_mutex.h
+++ b/winsup/cygserver/bsd_mutex.h
@@ -1,6 +1,6 @@
/* bsd_mutex.h: BSD Mutex helper
- Copyright 2003 Red Hat, Inc.
+ Copyright 2003, 2005 Red Hat, Inc.
This file is part of Cygwin.
@@ -25,6 +25,7 @@ struct mtx {
HANDLE h;
const char *name;
DWORD owner;
+ unsigned long cnt;
};
/* Some BSD kernel global mutex. */
@@ -33,9 +34,9 @@ extern struct mtx Giant;
void mtx_init (mtx *, const char *, const void *, int);
void _mtx_lock (mtx *, DWORD winpid, const char *, int);
#define mtx_lock(m) _mtx_lock((m), (td->ipcblk->winpid), __FILE__, __LINE__)
-int mtx_owned (mtx *);
-void _mtx_assert(mtx *, int, const char *, int);
-#define mtx_assert(m,w) _mtx_assert((m),(w),__FILE__,__LINE__)
+int mtx_owned (mtx *, DWORD);
+void _mtx_assert(mtx *, int, DWORD winpid, const char *, int);
+#define mtx_assert(m,w,p) _mtx_assert((m),(w),(p),__FILE__,__LINE__)
void _mtx_unlock (mtx *, const char *, int);
#define mtx_unlock(m) _mtx_unlock((m),__FILE__,__LINE__)