- mono_coop_mutex_lock (&threadpool->active_threads_lock);
- for (i = 0; i < threadpool->working_threads->len; ++i) {
- thread = (MonoInternalThread *)g_ptr_array_index (threadpool->working_threads, i);
- if ((thread->state & ThreadState_WaitSleepJoin) == 0) {
- all_waitsleepjoin = FALSE;
- break;
- }
- }
- mono_coop_mutex_unlock (&threadpool->active_threads_lock);