add missing initialisation for eventBufMutex
authorSimon Marlow <marlowsd@gmail.com>
Fri, 14 May 2010 09:49:43 +0000 (09:49 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 14 May 2010 09:49:43 +0000 (09:49 +0000)
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