summaryrefslogtreecommitdiff
path: root/rts/Messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'rts/Messages.h')
-rw-r--r--rts/Messages.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/rts/Messages.h b/rts/Messages.h
index 54650fd018..febb839ee9 100644
--- a/rts/Messages.h
+++ b/rts/Messages.h
@@ -15,4 +15,15 @@ void executeMessage (Capability *cap, Message *m);
void sendMessage (Capability *from_cap, Capability *to_cap, Message *msg);
#endif
+#include "Capability.h"
+#include "Updates.h" // for DEBUG_FILL_SLOP
+
+INLINE_HEADER void
+doneWithMsgThrowTo (MessageThrowTo *m)
+{
+ OVERWRITING_CLOSURE((StgClosure*)m);
+ unlockClosure((StgClosure*)m, &stg_MSG_NULL_info);
+ LDV_RECORD_CREATE(m);
+}
+
#include "EndPrivate.h"