New test.
[mono.git] / mono / metadata / threadpool.h
1 #ifndef _MONO_THREADPOOL_H_
2 #define _MONO_THREADPOOL_H_
3
4 #include <mono/metadata/object-internals.h>
5 #include <mono/metadata/reflection.h>
6
7 /* No managed code here */
8 void mono_thread_pool_init (void);
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 mono_thread_pool_cleanup (void);
19
20 void
21 ves_icall_System_Threading_ThreadPool_GetAvailableThreads (int *workerThreads,
22                                                            int *completionPortThreads);
23
24 void
25 ves_icall_System_Threading_ThreadPool_GetMaxThreads (int *workerThreads,
26                                                      int *completionPortThreads);
27
28 void
29 ves_icall_System_Threading_ThreadPool_GetMinThreads (gint *workerThreads, 
30                                                                 gint *completionPortThreads);
31
32 MonoBoolean
33 ves_icall_System_Threading_ThreadPool_SetMinThreads (gint workerThreads, 
34                                                                 gint completionPortThreads);
35
36 #endif