Add LOCK_CLOSURE macro for use in C--, which inlines the capability check.

Authored by ezyang on Jul 10 2013, 3:10 PM.

Description

Add LOCK_CLOSURE macro for use in C--, which inlines the capability check.

This patch also tweaks lockClosure to be INLINE_HEADER, so C-- clients
don't accidentally use them and updates some other code which locks closures
to do the capability check.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>

Details

Committed
ezyangJul 10 2013, 3:10 PM
Pushed
bgamariAug 25 2016, 1:39 PM
Parents
rGHCDIFF70e20631742e: Implement atomicReadMVar, fixing #4001.
Branches
Unknown
Tags
Unknown