3 * native threadpool worker
6 * Ludovic Henry (ludovic.henry@xamarin.com)
8 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
12 #define _USE_MATH_DEFINES // needed by MSVC to define math constants
17 #include <mono/metadata/threadpool.h>
18 #include <mono/metadata/threadpool-worker.h>
20 static MonoThreadPoolWorkerCallback tp_cb
;
21 static gboolean cb_scheduled
;
24 mono_threadpool_worker_init (MonoThreadPoolWorkerCallback callback
)
30 mono_threadpool_worker_cleanup (void)
35 mono_threadpool_worker_get_min (void)
41 mono_threadpool_worker_set_min (gint32 value
)
47 mono_threadpool_worker_get_max (void)
53 mono_threadpool_worker_set_max (gint32 value
)
59 fire_tp_callback (void)
66 mono_threadpool_worker_request (void)
69 mono_threads_schedule_background_job (fire_tp_callback
);
74 mono_threadpool_worker_notify_completed (void)