Handle statedump agent thread state across fork
[libside.git] / src / compiler.h
diff --git a/src/compiler.h b/src/compiler.h
new file mode 100644 (file)
index 0000000..5287813
--- /dev/null
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright (C) 2024 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ */
+
+#ifndef _SIDE_COMPILER_H
+#define _SIDE_COMPILER_H
+
+//TODO: implement per-architecture busy loop "pause"/"rep; nop;" instruction.
+static inline
+void side_cpu_relax(void)
+{
+       asm volatile ("" : : : "memory");
+}
+
+#endif /* _SIDE_COMPILER_H */
This page took 0.022431 seconds and 4 git commands to generate.