X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fthreadpool.h;h=efb28d34cbba4b6e0b1f75e41713dbfc619345b0;hb=f33e2fece0b056ea82643f7c3074aaadf07c67a4;hp=4e2559238b2c9f9741af53bd247aa0e5168124be;hpb=31ba67be622a003aa11a98e092424b6827c2a013;p=mono.git diff --git a/mono/metadata/threadpool.h b/mono/metadata/threadpool.h index 4e2559238b2..efb28d34cbb 100644 --- a/mono/metadata/threadpool.h +++ b/mono/metadata/threadpool.h @@ -1,39 +1,36 @@ #ifndef _MONO_THREADPOOL_H_ #define _MONO_THREADPOOL_H_ -#include +#include #include -extern int mono_max_worker_threads; -extern int busy_worker_threads; +/* No managed code here */ +void mono_thread_pool_init (void) MONO_INTERNAL; MonoAsyncResult * mono_thread_pool_add (MonoObject *target, MonoMethodMessage *msg, - MonoDelegate *async_callback, MonoObject *state); + MonoDelegate *async_callback, MonoObject *state) MONO_INTERNAL; MonoObject * mono_thread_pool_finish (MonoAsyncResult *ares, MonoArray **out_args, - MonoObject **exc); + MonoObject **exc) MONO_INTERNAL; -void mono_thread_pool_cleanup (void); +void mono_thread_pool_cleanup (void) MONO_INTERNAL; void ves_icall_System_Threading_ThreadPool_GetAvailableThreads (int *workerThreads, - int *completionPortThreads); + int *completionPortThreads) MONO_INTERNAL; void ves_icall_System_Threading_ThreadPool_GetMaxThreads (int *workerThreads, - int *completionPortThreads); + int *completionPortThreads) MONO_INTERNAL; void ves_icall_System_Threading_ThreadPool_GetMinThreads (gint *workerThreads, - gint *completionPortThreads); + gint *completionPortThreads) MONO_INTERNAL; MonoBoolean ves_icall_System_Threading_ThreadPool_SetMinThreads (gint workerThreads, - gint completionPortThreads); - -MonoBoolean -ves_icall_System_Threading_ThreadPool_BindHandle (gpointer handle); + gint completionPortThreads) MONO_INTERNAL; #endif