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);
11 mono_thread_pool_add (MonoObject *target, MonoMethodMessage *msg,
12 MonoDelegate *async_callback, MonoObject *state);
15 mono_thread_pool_finish (MonoAsyncResult *ares, MonoArray **out_args,
18 void mono_thread_pool_cleanup (void);
21 ves_icall_System_Threading_ThreadPool_GetAvailableThreads (int *workerThreads,
22 int *completionPortThreads);
25 ves_icall_System_Threading_ThreadPool_GetMaxThreads (int *workerThreads,
26 int *completionPortThreads);
29 ves_icall_System_Threading_ThreadPool_GetMinThreads (gint *workerThreads,
30 gint *completionPortThreads);
33 ves_icall_System_Threading_ThreadPool_SetMinThreads (gint workerThreads,
34 gint completionPortThreads);