1 #ifndef _MONO_THREADPOOL_H_
2 #define _MONO_THREADPOOL_H_
4 #include <mono/metadata/object.h>
5 #include <mono/metadata/reflection.h>
7 extern int mono_max_worker_threads;
8 extern int busy_worker_threads;
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);
37 ves_icall_System_Threading_ThreadPool_BindHandle (gpointer handle);