diff options
author | Christopher Faylor <me@cgf.cx> | 2004-03-15 15:50:20 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-03-15 15:50:20 +0000 |
commit | c25695bbb9c79595400c2700b3d5e05342108bf1 (patch) | |
tree | e81e6d040fe8b4df5a43a95af608fca63cd1bcbe /winsup/cygwin/sync.h | |
parent | 80c74a5f38a4b1dfe3eaf072cc5ac6f5379d9a5d (diff) | |
download | cygnal-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.h | 4 |
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; |