projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Warning police: Avoid warning about unused variable
[ghc-hetmet.git]
/
rts
/
posix
/
OSThreads.c
diff --git
a/rts/posix/OSThreads.c
b/rts/posix/OSThreads.c
index
cff3782
..
7aaa76a
100644
(file)
--- a/
rts/posix/OSThreads.c
+++ b/
rts/posix/OSThreads.c
@@
-93,6
+93,14
@@
osThreadId()
return pthread_self();
}
return pthread_self();
}
+rtsBool
+osThreadIsAlive(OSThreadId id STG_UNUSED)
+{
+ // no good way to implement this on POSIX, AFAICT. Returning true
+ // is safe.
+ return rtsTrue;
+}
+
void
initMutex(Mutex* pMut)
{
void
initMutex(Mutex* pMut)
{
@@
-106,6
+114,11
@@
initMutex(Mutex* pMut)
#endif
return;
}
#endif
return;
}
+void
+closeMutex(Mutex* pMut)
+{
+ pthread_mutex_destroy(pMut);
+}
void
newThreadLocalKey (ThreadLocalKey *key)
void
newThreadLocalKey (ThreadLocalKey *key)