CmmLayoutStack: Add unwind information on stack fixups
[ghc.git] / rts / Messages.h
1 /* ---------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 2010
4 *
5 * Inter-Capability message passing
6 *
7 * --------------------------------------------------------------------------*/
8
9 #include "BeginPrivate.h"
10
11 uint32_t messageBlackHole(Capability *cap, MessageBlackHole *msg);
12 StgTSO * blackHoleOwner (StgClosure *bh);
13
14 #ifdef THREADED_RTS
15 void executeMessage (Capability *cap, Message *m);
16 void sendMessage (Capability *from_cap, Capability *to_cap, Message *msg);
17 #endif
18
19 #include "Capability.h"
20 #include "Updates.h" // for DEBUG_FILL_SLOP
21 #include "SMPClosureOps.h"
22
23 INLINE_HEADER void
24 doneWithMsgThrowTo (MessageThrowTo *m)
25 {
26 OVERWRITING_CLOSURE((StgClosure*)m);
27 unlockClosure((StgClosure*)m, &stg_MSG_NULL_info);
28 LDV_RECORD_CREATE(m);
29 }
30
31 #include "EndPrivate.h"