/
threadpool.h
41 lines (29 loc) · 1.08 KB
/
threadpool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _MONO_THREADPOOL_H_
#define _MONO_THREADPOOL_H_
#include <mono/metadata/object-internals.h>
#include <mono/metadata/reflection.h>
extern int mono_max_worker_threads;
/* No managed code here */
void mono_thread_pool_init (void);
MonoAsyncResult *
mono_thread_pool_add (MonoObject *target, MonoMethodMessage *msg,
MonoDelegate *async_callback, MonoObject *state);
MonoObject *
mono_thread_pool_finish (MonoAsyncResult *ares, MonoArray **out_args,
MonoObject **exc);
void mono_thread_pool_cleanup (void);
void
ves_icall_System_Threading_ThreadPool_GetAvailableThreads (int *workerThreads,
int *completionPortThreads);
void
ves_icall_System_Threading_ThreadPool_GetMaxThreads (int *workerThreads,
int *completionPortThreads);
void
ves_icall_System_Threading_ThreadPool_GetMinThreads (gint *workerThreads,
gint *completionPortThreads);
MonoBoolean
ves_icall_System_Threading_ThreadPool_SetMinThreads (gint workerThreads,
gint completionPortThreads);
MonoBoolean
ves_icall_System_Threading_ThreadPool_BindHandle (gpointer handle);
#endif