X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fmonitor.c;h=676400c152e8d414dbf72f87b4d74e86037e0fb2;hb=5eb363dbf19658aa7665185c8521d5e4f2d46966;hp=dd2cc0eb9a7186b6a6d77471adeb1a914570bef9;hpb=3f3be880fa6dcf960160b39053e96a3845fff770;p=mono.git diff --git a/mono/metadata/monitor.c b/mono/metadata/monitor.c index dd2cc0eb9a7..676400c152e 100644 --- a/mono/metadata/monitor.c +++ b/mono/metadata/monitor.c @@ -891,7 +891,7 @@ retry_contended: * */ if (allow_interruption) { - if (!mono_thread_test_and_set_state (thread, (MonoThreadState)(ThreadState_StopRequested | ThreadState_AbortRequested), ThreadState_WaitSleepJoin)) { + if (!mono_thread_test_and_set_state (thread, ThreadState_AbortRequested, ThreadState_WaitSleepJoin)) { wait_ret = MONO_SEM_TIMEDWAIT_RET_ALERTED; goto done_waiting; } @@ -918,7 +918,7 @@ done_waiting: * We have to obey a stop/suspend request even if * allow_interruption is FALSE to avoid hangs at shutdown. */ - if (!mono_thread_test_state (mono_thread_internal_current (), (MonoThreadState)(ThreadState_StopRequested | ThreadState_SuspendRequested | ThreadState_AbortRequested))) { + if (!mono_thread_test_state (mono_thread_internal_current (), ThreadState_SuspendRequested | ThreadState_AbortRequested)) { if (ms != MONO_INFINITE_WAIT) { now = mono_msec_ticks ();