summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/sync.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-03-15 15:50:20 +0000
committerChristopher Faylor <me@cgf.cx>2004-03-15 15:50:20 +0000
commitc25695bbb9c79595400c2700b3d5e05342108bf1 (patch)
treee81e6d040fe8b4df5a43a95af608fca63cd1bcbe /winsup/cygwin/sync.h
parent80c74a5f38a4b1dfe3eaf072cc5ac6f5379d9a5d (diff)
downloadcygnal-c25695bbb9c79595400c2700b3d5e05342108bf1.tar.gz
cygnal-c25695bbb9c79595400c2700b3d5e05342108bf1.tar.bz2
cygnal-c25695bbb9c79595400c2700b3d5e05342108bf1.zip
* exceptions.cc (try_to_debug): Report on tid of caller.
* sync.cc (muto::acquire): Fix some races. * sync.h (muto): Expose some fields for easier debugging.
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r--winsup/cygwin/sync.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h
index 75b0b1602..24de97428 100644
--- a/winsup/cygwin/sync.h
+++ b/winsup/cygwin/sync.h
@@ -18,11 +18,11 @@ class muto
{
static DWORD exiting_thread;
LONG sync; /* Used to serialize access to this class. */
- LONG visits; /* Count of number of times a thread has called acquire. */
LONG waiters; /* Number of threads waiting for lock. */
HANDLE bruteforce; /* event handle used to control waiting for lock. */
- DWORD tid; /* Thread Id of lock owner. */
public:
+ LONG visits; /* Count of number of times a thread has called acquire. */
+ DWORD tid; /* Thread Id of lock owner. */
// class muto *next;
const char *name;