projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[threadpool] Fix hang on threadpool cleanup (#4330)
[mono.git]
/
mono
/
metadata
/
threadpool.c
diff --git
a/mono/metadata/threadpool.c
b/mono/metadata/threadpool.c
index dfd61ea3f589177a1aa7c7f9cd877e85488a6052..e58a78d47e0e37e9669762067b68316268d9caf5 100644
(file)
--- a/
mono/metadata/threadpool.c
+++ b/
mono/metadata/threadpool.c
@@
-187,6
+187,7
@@
cleanup (void)
mono_coop_mutex_unlock (&threadpool->threads_lock);
+#if 0
/* give a chance to the other threads to exit */
mono_thread_info_yield ();
@@
-205,6
+206,7
@@
cleanup (void)
}
mono_coop_mutex_unlock (&threadpool->threads_lock);
+#endif
mono_threadpool_worker_cleanup (threadpool->worker);