diff options
author | Christopher Faylor <me@cgf.cx> | 2012-12-22 23:35:41 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-12-22 23:35:41 +0400 |
commit | 4a84997ae4e5d770c14eb2bba73022ca3d9789e3 (patch) | |
tree | 861f91de6b26d4afc0512f87c56355bd5920e923 /winsup/cygwin/thread.cc | |
parent | e97256cf70fc1627641f0a10390b61ba904a6fe5 (diff) |
* select.h (select_stuff): Remove variable names from parameter declarations.
(select_info): Ditto.
(select_record::dump_select_record): Declare new debugging-only function.
(select_info): Zero all fields.
(select_pipe_info): Ditto.
(select_socket_info): Ditto.
(select_serial_info): Ditto.
(select_mailslot_info): Ditto.
* select.cc (select_record::dump_select_record): Define new debugging-only
function.
(select_stuff::test_and_set): Call dump_select_record when debugging.
* thread.cc (pthread_mutex::unlock): Revert setting of tid to NULL since, in
this context, it is a number, not a pointer.
(pthread_spinlock::unlock): Ditto.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 187ea52fd..ba3221cc9 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -1778,7 +1778,7 @@ pthread_mutex::unlock () { owner = (pthread_t) _unlocked_mutex; #ifdef DEBUGGING - tid = NULL; + tid = 0; // thread-id #endif if (InterlockedDecrement ((long *) &lock_counter)) ::SetEvent (win32_obj_id); // Another thread is waiting @@ -1905,7 +1905,7 @@ pthread_spinlock::unlock () { owner = (pthread_t) _unlocked_mutex; #ifdef DEBUGGING - tid = NULL; + tid = 0; // thread-id #endif InterlockedExchange ((long *) &lock_counter, 0); ::SetEvent (win32_obj_id); |