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 #ifndef ENABLE_NETCORE
19 #include <mono/metadata/threadpool.h>
20 #include <mono/metadata/threadpool-worker.h>
22 static MonoThreadPoolWorkerCallback tp_cb
;
23 static gboolean cb_scheduled
;
26 mono_threadpool_worker_init (MonoThreadPoolWorkerCallback callback
)
32 mono_threadpool_worker_cleanup (void)
37 mono_threadpool_worker_get_min (void)
43 mono_threadpool_worker_set_min (gint32 value
)
49 mono_threadpool_worker_get_max (void)
55 mono_threadpool_worker_set_max (gint32 value
)
61 fire_tp_callback (void)
68 mono_threadpool_worker_request (void)
71 mono_threads_schedule_background_job (fire_tp_callback
);
76 mono_threadpool_worker_notify_completed (void)