summaryrefslogtreecommitdiff
path: root/rts/posix/OSThreads.c
diff options
context:
space:
mode:
authorEsa Ilari Vuokko <ei@vuokko.info>2006-08-23 19:46:04 +0000
committerEsa Ilari Vuokko <ei@vuokko.info>2006-08-23 19:46:04 +0000
commit88b35c172f9434fd98b700f706074d142914a8bb (patch)
tree69dad172652bfbb112ab2ef8afc964c0112b662b /rts/posix/OSThreads.c
parent52589e05f86d593bc3e6ea3f1a0b8f6ceae94fe6 (diff)
downloadhaskell-88b35c172f9434fd98b700f706074d142914a8bb.tar.gz
Add closeMutex and use it on clean up
Diffstat (limited to 'rts/posix/OSThreads.c')
-rw-r--r--rts/posix/OSThreads.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c
index cff37824cb..b30d08545d 100644
--- a/rts/posix/OSThreads.c
+++ b/rts/posix/OSThreads.c
@@ -106,6 +106,11 @@ initMutex(Mutex* pMut)
#endif
return;
}
+void
+closeMutex(Mutex* pMut)
+{
+ pthread_mutex_destroy(pMut);
+}
void
newThreadLocalKey (ThreadLocalKey *key)