* icall.c: Registered icalls for ThreadPool.GetMinThreads and
[mono.git] / mono / metadata / threadpool.h
1 #ifndef _MONO_THREADPOOL_H_
2 #define _MONO_THREADPOOL_H_
3
4 #include <mono/metadata/object.h>
5 #include <mono/metadata/reflection.h>
6
7 extern int mono_max_worker_threads;
8 extern int busy_worker_threads;
9
10 MonoAsyncResult *
11 mono_thread_pool_add     (MonoObject *target, MonoMethodMessage *msg, 
12                           MonoDelegate *async_callback, MonoObject *state);
13
14 MonoObject *
15 mono_thread_pool_finish (MonoAsyncResult *ares, MonoArray **out_args, 
16                          MonoObject **exc);
17
18 void
19 ves_icall_System_Threading_ThreadPool_GetAvailableThreads (int *workerThreads,
20                                                            int *completionPortThreads);
21
22 void
23 ves_icall_System_Threading_ThreadPool_GetMaxThreads (int *workerThreads,
24                                                      int *completionPortThreads);
25
26 void
27 ves_icall_System_Threading_ThreadPool_GetMinThreads (gint *workerThreads, 
28                                                                 gint *completionPortThreads);
29
30 void
31 ves_icall_System_Threading_ThreadPool_SetMinThreads (gint workerThreads, 
32                                                                 gint completionPortThreads);
33
34 MonoBoolean
35 ves_icall_System_Threading_ThreadPool_BindHandle (gpointer handle);
36
37 #endif