diff options
author | Simon Marlow <marlowsd@gmail.com> | 2013-01-30 09:46:37 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2013-01-30 10:50:14 +0000 |
commit | dbefe7b83a4aee0ab42b432743d782912ac59543 (patch) | |
tree | ce1c8fa3511b67485c975200e7b2c37fff302c78 /rts/STM.c | |
parent | a23661d242e8dd55007c4aee8a053f35de7705bd (diff) | |
download | haskell-dbefe7b83a4aee0ab42b432743d782912ac59543.tar.gz |
fix warnings
Diffstat (limited to 'rts/STM.c')
-rw-r--r-- | rts/STM.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -385,11 +385,12 @@ static void unpark_tso(Capability *cap, StgTSO *tso) { // This way we can avoid sending further wakeup messages in the // future. lockTSO(tso); - if (tso->why_blocked == BlockedOnSTM && tso->block_info.closure == STM_AWOKEN) { + if (tso->why_blocked == BlockedOnSTM && + tso->block_info.closure == &stg_STM_AWOKEN_closure) { TRACE("unpark_tso already woken up tso=%p", tso); } else if (tso -> why_blocked == BlockedOnSTM) { TRACE("unpark_tso on tso=%p", tso); - tso->block_info.closure = STM_AWOKEN; + tso->block_info.closure = &stg_STM_AWOKEN_closure; tryWakeupThread(cap,tso); } else { TRACE("spurious unpark_tso on tso=%p", tso); |