diff options
author | Zoltan Varga <vargaz@gmail.com> | 2017-06-30 22:30:12 +0300 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2017-06-30 22:30:42 +0300 |
commit | 7df343579deac9299710f21340ae81d542e892c3 (patch) | |
tree | 9f9a065c5cfa3d46904bc3cc9bfde85711ad0bbb | |
parent | e8e72a2d9cacde9035707bdcc0047de5d25cc465 (diff) |
Revert "[w32handle] Add some debugging code to help track down handle wait problems. (#5136)"
This reverts commit c79b4b244e1e5df8cc301186661c05e00ae70928.
-rw-r--r-- | mono/metadata/w32handle.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/mono/metadata/w32handle.c b/mono/metadata/w32handle.c index 3f2b3fe11f5..dfd42b1d05b 100644 --- a/mono/metadata/w32handle.c +++ b/mono/metadata/w32handle.c @@ -34,7 +34,6 @@ typedef struct { MonoW32HandleType type; guint ref; gboolean signalled; - gboolean in_use; mono_mutex_t signal_mutex; mono_cond_t signal_cond; gpointer specific; @@ -180,17 +179,6 @@ mono_w32handle_issignalled (gpointer handle) } static void -mono_w32handle_set_in_use (gpointer handle, gboolean in_use) -{ - MonoW32HandleBase *handle_data; - - if (!mono_w32handle_lookup_data (handle, &handle_data)) - g_assert_not_reached (); - - handle_data->in_use = in_use; -} - -static void mono_w32handle_lock_signal_mutex (void) { #ifdef DEBUG @@ -676,8 +664,6 @@ w32handle_destroy (gpointer handle) if (!mono_w32handle_lookup_data (handle, &handle_data)) g_error ("%s: unknown handle %p", __func__, handle); - g_assert (!handle_data->in_use); - type = handle_data->type; handle_specific = handle_data->specific; @@ -1197,8 +1183,6 @@ mono_w32handle_wait_one (gpointer handle, guint32 timeout, gboolean alertable) if (timeout != MONO_INFINITE_WAIT) start = mono_msec_ticks (); - mono_w32handle_set_in_use (handle, TRUE); - for (;;) { gint waited; @@ -1238,8 +1222,6 @@ mono_w32handle_wait_one (gpointer handle, guint32 timeout, gboolean alertable) } done: - mono_w32handle_set_in_use (handle, FALSE); - mono_w32handle_unlock_handle (handle); return ret; |