[threadpool] Make sure we check if the runtime is shutting down in case of interruption
[mono.git] / mono / utils / mono-hwcap.h
index b09555f8bbfe1ccfdf7512eae6c809fae75b0e46..1867d3d258a62bbb0c0e4d8b820892a691781586 100644 (file)
@@ -1,12 +1,17 @@
 #ifndef __MONO_UTILS_HWCAP_H__
 #define __MONO_UTILS_HWCAP_H__
 
+#include <stdio.h>
 #include <glib.h>
 
 #include "config.h"
 
 #include "mono/utils/mono-compiler.h"
 
+#define MONO_HWCAP_VAR(NAME) extern gboolean mono_hwcap_ ## NAME;
+#include "mono/utils/mono-hwcap-vars.h"
+#undef MONO_HWCAP_VAR
+
 /* Call this function to perform hardware feature detection. Until
  * this function has been called, all feature variables will be
  * FALSE as a default.
  * result in an inconsistent state of the variables. Further,
  * feature variables should not be read *while* this function is
  * executing.
- *
- * To get at feature variables, include the appropriate header,
- * e.g. mono-hwcap-x86.h for x86(-64).
  */
-void mono_hwcap_init (void) MONO_INTERNAL;
+void mono_hwcap_init (void);
+
+/* Implemented in mono-hwcap-$TARGET.c. Do not call. */
+void mono_hwcap_arch_init (void);
+
+/* Print detected features to stdout. */
+void mono_hwcap_print (void);
 
 /* Please note: If you're going to use the Linux auxiliary vector
  * to detect CPU features, don't use any of the constant names in