projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3756 from henricm/named-pipe-alertable-on-windows
[mono.git]
/
mono
/
metadata
/
threadpool-ms.h
diff --git
a/mono/metadata/threadpool-ms.h
b/mono/metadata/threadpool-ms.h
index cca595fcf38a71f203c10c69afe9057827eab52f..1603e3a15d998d18b152aa88eb104ec6e4ee1e03 100644
(file)
--- a/
mono/metadata/threadpool-ms.h
+++ b/
mono/metadata/threadpool-ms.h
@@
-5,38
+5,19
@@
#include <glib.h>
#include <mono/metadata/exception.h>
#include <glib.h>
#include <mono/metadata/exception.h>
+#include <mono/metadata/object-internals.h>
#define SMALL_STACK (sizeof (gpointer) * 32 * 1024)
#define SMALL_STACK (sizeof (gpointer) * 32 * 1024)
-enum {
- STATUS_NOT_INITIALIZED,
- STATUS_INITIALIZING,
- STATUS_INITIALIZED,
- STATUS_CLEANING_UP,
- STATUS_CLEANED_UP,
-};
-
typedef struct _MonoNativeOverlapped MonoNativeOverlapped;
typedef struct _MonoNativeOverlapped MonoNativeOverlapped;
-static void G_GNUC_UNUSED
-mono_threadpool_ms_init (void)
-{
- /* Initialization is done lazily */
-}
-
-static void G_GNUC_UNUSED
-mono_threadpool_ms_init_tls (void)
-{
- /* The WSQ is now implemented in managed */
-}
-
void
mono_threadpool_ms_cleanup (void);
MonoAsyncResult *
void
mono_threadpool_ms_cleanup (void);
MonoAsyncResult *
-mono_threadpool_ms_
add (MonoObject *target, MonoMethodMessage *msg, MonoDelegate *async_callback, MonoObject *state
);
+mono_threadpool_ms_
begin_invoke (MonoDomain *domain, MonoObject *target, MonoMethod *method, gpointer *params, MonoError *error
);
MonoObject *
MonoObject *
-mono_threadpool_ms_
finish (MonoAsyncResult *ares, MonoArray **out_args, MonoObject **exc
);
+mono_threadpool_ms_
end_invoke (MonoAsyncResult *ares, MonoArray **out_args, MonoObject **exc, MonoError *error
);
gboolean
mono_threadpool_ms_remove_domain_jobs (MonoDomain *domain, int timeout);
gboolean
mono_threadpool_ms_remove_domain_jobs (MonoDomain *domain, int timeout);
@@
-46,46
+27,39
@@
mono_threadpool_ms_suspend (void);
void
mono_threadpool_ms_resume (void);
void
mono_threadpool_ms_resume (void);
-static gboolean G_GNUC_UNUSED
-mono_threadpool_ms_is_queue_array (MonoArray *arr)
-{
- /* The queue is in managed code */
- return FALSE;
-}
-
void
void
-ves_icall_System_Threading_
Microsoft_ThreadPool_GetAvailableThreadsNative (gint *worker_threads, gint
*completion_port_threads);
+ves_icall_System_Threading_
ThreadPool_GetAvailableThreadsNative (gint32 *worker_threads, gint32
*completion_port_threads);
void
void
-ves_icall_System_Threading_
Microsoft_ThreadPool_GetMinThreadsNative (gint *worker_threads, gint
*completion_port_threads);
+ves_icall_System_Threading_
ThreadPool_GetMinThreadsNative (gint32 *worker_threads, gint32
*completion_port_threads);
void
void
-ves_icall_System_Threading_
Microsoft_ThreadPool_GetMaxThreadsNative (gint *worker_threads, gint
*completion_port_threads);
+ves_icall_System_Threading_
ThreadPool_GetMaxThreadsNative (gint32 *worker_threads, gint32
*completion_port_threads);
MonoBoolean
MonoBoolean
-ves_icall_System_Threading_
Microsoft_ThreadPool_SetMinThreadsNative (gint worker_threads, gint
completion_port_threads);
+ves_icall_System_Threading_
ThreadPool_SetMinThreadsNative (gint32 worker_threads, gint32
completion_port_threads);
MonoBoolean
MonoBoolean
-ves_icall_System_Threading_
Microsoft_ThreadPool_SetMaxThreadsNative (gint worker_threads, gint
completion_port_threads);
+ves_icall_System_Threading_
ThreadPool_SetMaxThreadsNative (gint32 worker_threads, gint32
completion_port_threads);
void
void
-ves_icall_System_Threading_
Microsoft_
ThreadPool_InitializeVMTp (MonoBoolean *enable_worker_tracking);
+ves_icall_System_Threading_ThreadPool_InitializeVMTp (MonoBoolean *enable_worker_tracking);
MonoBoolean
MonoBoolean
-ves_icall_System_Threading_
Microsoft_
ThreadPool_NotifyWorkItemComplete (void);
+ves_icall_System_Threading_ThreadPool_NotifyWorkItemComplete (void);
void
void
-ves_icall_System_Threading_
Microsoft_
ThreadPool_NotifyWorkItemProgressNative (void);
+ves_icall_System_Threading_ThreadPool_NotifyWorkItemProgressNative (void);
void
void
-ves_icall_System_Threading_
Microsoft_
ThreadPool_ReportThreadStatus (MonoBoolean is_working);
+ves_icall_System_Threading_ThreadPool_ReportThreadStatus (MonoBoolean is_working);
MonoBoolean
MonoBoolean
-ves_icall_System_Threading_
Microsoft_
ThreadPool_RequestWorkerThread (void);
+ves_icall_System_Threading_ThreadPool_RequestWorkerThread (void);
MonoBoolean
MonoBoolean
-ves_icall_System_Threading_
Microsoft_
ThreadPool_PostQueuedCompletionStatus (MonoNativeOverlapped *native_overlapped);
+ves_icall_System_Threading_ThreadPool_PostQueuedCompletionStatus (MonoNativeOverlapped *native_overlapped);
MonoBoolean
MonoBoolean
-ves_icall_System_Threading_
Microsoft_
ThreadPool_BindIOCompletionCallbackNative (gpointer file_handle);
+ves_icall_System_Threading_ThreadPool_BindIOCompletionCallbackNative (gpointer file_handle);
MonoBoolean
MonoBoolean
-ves_icall_System_Threading_
Microsoft_
ThreadPool_IsThreadPoolHosted (void);
+ves_icall_System_Threading_ThreadPool_IsThreadPoolHosted (void);
/* Internals */
/* Internals */
-void
-mono_threadpool_ms_enqueue_work_item (MonoDomain *domain, MonoObject *work_item);
+gboolean
+mono_threadpool_ms_enqueue_work_item (MonoDomain *domain, MonoObject *work_item
, MonoError *error
);
#endif // _MONO_THREADPOOL_MICROSOFT_H_
#endif // _MONO_THREADPOOL_MICROSOFT_H_