This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[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 extern int mono_max_worker_threads;
8
9 MonoAsyncResult *
10 mono_thread_pool_add     (MonoObject *target, MonoMethodMessage *msg, 
11                           MonoDelegate *async_callback, MonoObject *state);
12
13 MonoObject *
14 mono_thread_pool_finish (MonoAsyncResult *ares, MonoArray **out_args, 
15                          MonoObject **exc);
16
17 void mono_thread_pool_cleanup (void);
18
19 void
20 ves_icall_System_Threading_ThreadPool_GetAvailableThreads (int *workerThreads,
21                                                            int *completionPortThreads);
22
23 void
24 ves_icall_System_Threading_ThreadPool_GetMaxThreads (int *workerThreads,
25                                                      int *completionPortThreads);
26
27 void
28 ves_icall_System_Threading_ThreadPool_GetMinThreads (gint *workerThreads, 
29                                                                 gint *completionPortThreads);
30
31 MonoBoolean
32 ves_icall_System_Threading_ThreadPool_SetMinThreads (gint workerThreads, 
33                                                                 gint completionPortThreads);
34
35 MonoBoolean
36 ves_icall_System_Threading_ThreadPool_BindHandle (gpointer handle);
37
38 #endif