* 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.
This commit is contained in:
Christopher Faylor
2004-03-15 15:50:20 +00:00
parent 80c74a5f38
commit c25695bbb9
4 changed files with 31 additions and 31 deletions

View File

@@ -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;