projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2004-03-13 00:56:45 by sof]
[ghc-hetmet.git]
/
ghc
/
rts
/
OSThreads.c
diff --git
a/ghc/rts/OSThreads.c
b/ghc/rts/OSThreads.c
index
06b905a
..
ca8fd6d
100644
(file)
--- a/
ghc/rts/OSThreads.c
+++ b/
ghc/rts/OSThreads.c
@@
-169,17
+169,19
@@
broadcastCondition ( Condition* pCond )
rtsBool
signalCondition ( Condition* pCond )
{
rtsBool
signalCondition ( Condition* pCond )
{
- SetEvent(*pCond);
- return rtsTrue;
+ if (SetEvent(*pCond) == 0) {
+ barf("SetEvent: %d", GetLastError());
+ }
+ return rtsTrue;
}
rtsBool
waitCondition ( Condition* pCond, Mutex* pMut )
{
}
rtsBool
waitCondition ( Condition* pCond, Mutex* pMut )
{
- ReleaseMutex(*pMut);
+ RELEASE_LOCK(pMut);
WaitForSingleObject(*pCond, INFINITE);
/* Hmm..use WaitForMultipleObjects() ? */
WaitForSingleObject(*pCond, INFINITE);
/* Hmm..use WaitForMultipleObjects() ? */
- WaitForSingleObject(*pMut, INFINITE);
+ ACQUIRE_LOCK(pMut);
return rtsTrue;
}
return rtsTrue;
}
@@
-259,7
+261,7
@@
forkOS_createThread ( HsStablePtr entry )
#else /* !defined(RTS_SUPPORTS_THREADS) */
int
#else /* !defined(RTS_SUPPORTS_THREADS) */
int
-forkOS_createThread ( HsStablePtr entry )
+forkOS_createThread ( HsStablePtr entry STG_UNUSED )
{
return -1;
}
{
return -1;
}