Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions mono/metadata/threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -2306,9 +2306,6 @@ mono_thread_suspend (MonoInternalThread *thread)
}

thread->state |= ThreadState_SuspendRequested;

UNLOCK_THREAD (thread);

suspend_thread_internal (thread, FALSE);
return TRUE;
}
Expand Down Expand Up @@ -3290,9 +3287,6 @@ void mono_thread_suspend_all_other_threads (void)
thread->state &= ~ThreadState_AbortRequested;

thread->state |= ThreadState_SuspendRequested;

UNLOCK_THREAD (thread);

/* Signal the thread to suspend */
suspend_thread_internal (thread, TRUE);
}
Expand Down Expand Up @@ -4791,7 +4785,6 @@ suspend_thread_critical (MonoThreadInfo *info, gpointer ud)
static void
suspend_thread_internal (MonoInternalThread *thread, gboolean interrupt)
{
LOCK_THREAD (thread);
if (thread == mono_thread_internal_current ()) {
mono_thread_info_begin_self_suspend ();
//XXX replace this with better named functions
Expand Down