16 lines
687 B
Plaintext
16 lines
687 B
Plaintext
$OpenBSD: patch-mono_metadata_threadpool_c,v 1.3 2014/07/09 11:39:17 robert Exp $
|
|
--- mono/metadata/threadpool.c.orig Tue Jul 8 15:24:02 2014
|
|
+++ mono/metadata/threadpool.c Tue Jul 8 15:24:10 2014
|
|
@@ -1560,11 +1560,7 @@ async_invoke_thread (gpointer data)
|
|
|
|
mono_gc_set_skip_thread (TRUE);
|
|
|
|
-#if defined(__OpenBSD__)
|
|
- while (mono_cq_count (tp->queue) == 0 && (res = mono_sem_wait (&tp->new_job, TRUE)) == -1) {// && errno == EINTR) {
|
|
-#else
|
|
while (mono_cq_count (tp->queue) == 0 && (res = mono_sem_timedwait (&tp->new_job, 2000, TRUE)) == -1) {// && errno == EINTR) {
|
|
-#endif
|
|
if (mono_runtime_is_shutting_down ())
|
|
break;
|
|
check_for_interruption_critical ();
|