1 #ifndef _MONO_THREADPOOL_H_
2 #define _MONO_THREADPOOL_H_
4 #include <mono/metadata/object-internals.h>
5 #include <mono/metadata/reflection.h>
7 /* No managed code here */
8 void mono_thread_pool_init (void) MONO_INTERNAL
;
11 mono_thread_pool_add (MonoObject
*target
, MonoMethodMessage
*msg
,
12 MonoDelegate
*async_callback
, MonoObject
*state
) MONO_INTERNAL
;
15 mono_thread_pool_finish (MonoAsyncResult
*ares
, MonoArray
**out_args
,
16 MonoObject
**exc
) MONO_INTERNAL
;
18 void mono_thread_pool_cleanup (void) MONO_INTERNAL
;
20 gboolean
mono_thread_pool_remove_domain_jobs (MonoDomain
*domain
, int timeout
) MONO_INTERNAL
;
23 ves_icall_System_Threading_ThreadPool_GetAvailableThreads (int *workerThreads
,
24 int *completionPortThreads
) MONO_INTERNAL
;
27 ves_icall_System_Threading_ThreadPool_GetMaxThreads (int *workerThreads
,
28 int *completionPortThreads
) MONO_INTERNAL
;
31 ves_icall_System_Threading_ThreadPool_GetMinThreads (gint
*workerThreads
,
32 gint
*completionPortThreads
) MONO_INTERNAL
;
35 ves_icall_System_Threading_ThreadPool_SetMinThreads (gint workerThreads
,
36 gint completionPortThreads
) MONO_INTERNAL
;
39 ves_icall_System_Threading_ThreadPool_SetMaxThreads (gint workerThreads
,
40 gint completionPortThreads
) MONO_INTERNAL
;