-/*
- * sgen-thread-pool.c: Threadpool for all concurrent GC work.
+/**
+ * \file
+ * Threadpool for all concurrent GC work.
*
* Copyright (C) 2015 Xamarin Inc
*
gboolean do_idle;
SgenThreadPoolJob *job;
- if (!should_work (thread_data)) {
+ if (!should_work (thread_data) && !threadpool_shutdown) {
mono_os_cond_wait (&work_cond, &lock);
continue;
}