add missing initialisation for eventBufMutex
[ghc-hetmet.git] / rts / eventlog / EventLog.c
index 7026a2a..ebfbb7b 100644 (file)
@@ -288,6 +288,10 @@ initEventLogging(void)
     for (c = 0; c < n_caps; ++c) {
         postBlockMarker(&capEventBuf[c]);
     }
+
+#ifdef THREADED_RTS
+    initMutex(&eventBufMutex);
+#endif
 }
 
 void