Add closeMutex and use it on clean up
[ghc-hetmet.git] / rts / posix / OSThreads.c
index cff3782..b30d085 100644 (file)
@@ -106,6 +106,11 @@ initMutex(Mutex* pMut)
 #endif
     return;
 }
+void
+closeMutex(Mutex* pMut)
+{
+    pthread_mutex_destroy(pMut);
+}
 
 void
 newThreadLocalKey (ThreadLocalKey *key)