[utils/hp] Export mono_thread_hazardous_try_free () for use in the profiler.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Thu, 7 Apr 2016 23:17:46 +0000 (01:17 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Thu, 7 Apr 2016 23:17:46 +0000 (01:17 +0200)
mono/utils/hazard-pointer.h

index 3cb2c0aeba33817f0aad3b33bdb9c906913e6fb9..0102c103f7629785b1eb8c231a88f86269dbc56c 100644 (file)
@@ -10,6 +10,7 @@
 #include <glib.h>
 #include <mono/utils/mono-compiler.h>
 #include <mono/utils/mono-membar.h>
+#include <mono/utils/mono-publib.h>
 
 #define HAZARD_POINTER_COUNT 3
 
@@ -29,7 +30,7 @@ typedef enum {
        HAZARD_FREE_ASYNC_CTX,
 } HazardFreeContext;
 
-gboolean mono_thread_hazardous_try_free (gpointer p, MonoHazardousFreeFunc free_func);
+MONO_API gboolean mono_thread_hazardous_try_free (gpointer p, MonoHazardousFreeFunc free_func);
 void mono_thread_hazardous_queue_free (gpointer p, MonoHazardousFreeFunc free_func);
 
 void mono_thread_hazardous_try_free_all (void);