New tests.
[mono.git] / mono / io-layer / threads.h
index a8992a819b8b47929d05b3193ccc3b7897f89861..b61f26113517d6e76d9675d434545e44bafede6d 100644 (file)
@@ -40,6 +40,11 @@ G_BEGIN_DECLS
 typedef guint32 (*WapiThreadStart)(gpointer);
 typedef guint32 (*WapiApcProc)(gpointer);
 
+/* 
+ * The 'tid' argument has a different type than in win32, which breaks on win64.
+ * Runtime code shouldn't use this, use the mono_thread_create () function in
+ * metadata instead.
+ */
 extern gpointer CreateThread(WapiSecurityAttributes *security,
                             guint32 stacksize, WapiThreadStart start,
                             gpointer param, guint32 create, gsize *tid); /* NB tid is 32bit in MS API */
@@ -69,6 +74,8 @@ void wapi_interrupt_thread (gpointer handle);
 void wapi_clear_interruption (void);
 gboolean wapi_thread_set_wait_handle (gpointer handle);
 void wapi_thread_clear_wait_handle (gpointer handle);
+void wapi_self_interrupt (void);
+
 char* wapi_current_thread_desc (void);
 
 G_END_DECLS