summaryrefslogtreecommitdiff
path: root/rts/hooks/InitEachPE.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/hooks/InitEachPE.c')
-rw-r--r--rts/hooks/InitEachPE.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/rts/hooks/InitEachPE.c b/rts/hooks/InitEachPE.c
new file mode 100644
index 0000000000..cc9cdc0dba
--- /dev/null
+++ b/rts/hooks/InitEachPE.c
@@ -0,0 +1,23 @@
+/* -----------------------------------------------------------------------------
+ *
+ * User-overridable RTS hooks.
+ *
+ * ---------------------------------------------------------------------------*/
+
+#include "Rts.h"
+
+#ifdef PAR
+void
+InitEachPEHook (void)
+{ /* In a GUM setup this is called on each
+ PE immediately before SynchroniseSystem.
+ It can be used to read in static data
+ to each PE which has to be available to
+ each PE. See GPH-Maple as an example how to
+ use this in combination with foreign language
+ code:
+ http://www.risc.uni-linz.ac.at/software/ghc-maple/
+ -- HWL
+ */
+}
+#endif