[io-layer] Fix the linux build.
[mono.git] / mono / io-layer / handles-private.h
index 2c046cff891d426a2bee5b1a5f2d1a6eb30496e7..c3f815cfc2c65f63677083cbb82596325347bafb 100644 (file)
@@ -144,7 +144,6 @@ static inline void _wapi_handle_set_signal_state (gpointer handle,
                /* The condition the global signal cond is waiting on is the signalling of
                 * _any_ handle. So lock it before setting the signalled state.
                 */
-               pthread_cleanup_push ((void(*)(void *))mono_mutex_unlock_in_cleanup, (void *)_wapi_global_signal_mutex);
                thr_ret = mono_mutex_lock (_wapi_global_signal_mutex);
                if (thr_ret != 0)
                        g_warning ("Bad call to mono_mutex_lock result %d for global signal mutex", thr_ret);
@@ -179,8 +178,6 @@ static inline void _wapi_handle_set_signal_state (gpointer handle,
                if (thr_ret != 0)
                        g_warning ("Bad call to mono_mutex_unlock result %d for global signal mutex", thr_ret);
                g_assert (thr_ret == 0);
-
-               pthread_cleanup_pop (0);
        } else {
                handle_data->signalled=state;
        }