From 8aac921cbf7b58b67d202df2fc59a88011d6fdb3 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Fri, 14 May 2010 09:49:43 +0000 Subject: add missing initialisation for eventBufMutex --- rts/eventlog/EventLog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rts/eventlog') diff --git a/rts/eventlog/EventLog.c b/rts/eventlog/EventLog.c index 7026a2abaf..ebfbb7b0e4 100644 --- a/rts/eventlog/EventLog.c +++ b/rts/eventlog/EventLog.c @@ -288,6 +288,10 @@ initEventLogging(void) for (c = 0; c < n_caps; ++c) { postBlockMarker(&capEventBuf[c]); } + +#ifdef THREADED_RTS + initMutex(&eventBufMutex); +#endif } void -- cgit v1.2.1