X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fposix%2FOSThreads.c;h=7aaa76a7fc2511d72115e042b322cfde05758adf;hb=02fad624dee8592d6ef1402851063fc2c7614a1d;hp=cff37824cbc40cf1485d87c29295684be8ff0ab7;hpb=a91cc8496bf4ea7fe1e3ad9d97836152f3939ffa;p=ghc-hetmet.git diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c index cff3782..7aaa76a 100644 --- a/rts/posix/OSThreads.c +++ b/rts/posix/OSThreads.c @@ -93,6 +93,14 @@ osThreadId() 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) { @@ -106,6 +114,11 @@ initMutex(Mutex* pMut) #endif return; } +void +closeMutex(Mutex* pMut) +{ + pthread_mutex_destroy(pMut); +} void newThreadLocalKey (ThreadLocalKey *key)