Fix to UriTemplate.Match to properly handle query parameters without a value. No...
[mono.git] / mono / metadata / tpool-poll.c
index aa1077bf07f9db1de24f085f9bae198341f27713..61254e03dab1e3ae80d7602977618c6cad745261 100644 (file)
@@ -8,6 +8,15 @@
  * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com)
  * Copyright 2004-2011 Novell, Inc (http://www.novell.com)
  */
+#include <config.h>
+#include <glib.h>
+#include <errno.h>
+
+#include <mono/metadata/mono-ptr-array.h>
+#include <mono/metadata/threadpool.h>
+#include <mono/metadata/threadpool-internals.h>
+#include <mono/utils/mono-semaphore.h>
+#include <mono/utils/mono-poll.h>
 
 #define INIT_POLLFD(a, b, c) {(a)->fd = b; (a)->events = c; (a)->revents = 0;}
 struct _tp_poll_data {
@@ -22,7 +31,7 @@ static void tp_poll_shutdown (gpointer event_data);
 static void tp_poll_modify (gpointer p, int fd, int operation, int events, gboolean is_new);
 static void tp_poll_wait (gpointer p);
 
-static gpointer
+gpointer
 tp_poll_init (SocketIOData *data)
 {
        tp_poll_data *result;
@@ -315,7 +324,7 @@ tp_poll_wait (gpointer p)
                        }
                }
                mono_mutex_unlock (&socket_io_data->io_lock);
-               threadpool_append_jobs (&async_io_tp, (MonoObject **) async_results.data, nresults);
+               threadpool_append_async_io_jobs ((MonoObject **) async_results.data, nresults);
                mono_ptr_array_clear (async_results);
        }
 }