* Jonathan Pryor
*
* Copyright 2010 Novell, Inc (http://www.novell.com)
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#include <config.h>
#include <mono/metadata/runtime.h>
#include <mono/metadata/monitor.h>
#include <mono/metadata/threads-types.h>
-#include <mono/metadata/threadpool.h>
+#include <mono/metadata/threadpool-ms.h>
#include <mono/metadata/marshal.h>
#include <mono/utils/atomic.h>
}
-/*
+/**
+ * mono_runtime_try_shutdown:
+ *
* Try to initialize runtime shutdown.
+ *
* After this call completes the thread pool will stop accepting new jobs and no further threads will be created.
*
- * @return true if shutdown was initiated by this call or false is other thread beat this one
+ * Returns: TRUE if shutdown was initiated by this call or false is other thread beat this one.
*/
gboolean
mono_runtime_try_shutdown (void)
mono_runtime_set_shutting_down ();
/* This will kill the tp threads which cannot be suspended */
- mono_thread_pool_cleanup ();
+ mono_threadpool_ms_cleanup ();
/*TODO move the follow to here:
mono_thread_suspend_all_other_threads (); OR mono_thread_wait_all_other_threads
mono_runtime_init_tls (void)
{
mono_marshal_init_tls ();
- mono_thread_pool_init_tls ();
mono_thread_init_tls ();
}