/* If this is defined, use the signals backed on Mach. Debug only as signals can't be made usable on OSX. */
// #define USE_SIGNALS_ON_MACH
-#if defined (_POSIX_VERSION)
+#ifdef HOST_WASM
+#define USE_WASM_BACKEND
+#elif defined (_POSIX_VERSION)
#if defined (__MACH__) && !defined (USE_SIGNALS_ON_MACH)
#define USE_MACH_BACKEND
#else
/* GCHandle to MonoInternalThread */
guint32 internal_thread_gchandle;
+
+ /*
+ * Used by the sampling code in mini-posix.c to ensure that a thread has
+ * handled a sampling signal before sending another one.
+ */
+ gint32 profiler_signal_ack;
} MonoThreadInfo;
typedef struct {
MonoThreadInfoRuntimeCallbacks *
mono_threads_get_runtime_callbacks (void);
-int
+MONO_API int
mono_thread_info_register_small_id (void);
THREAD_INFO_TYPE *
THREAD_INFO_TYPE*
mono_thread_info_current_unchecked (void);
-int
+MONO_API int
mono_thread_info_get_small_id (void);
MonoLinkedListSet*