add noDuplicate#
authorSimon Marlow <simonmar@microsoft.com>
Tue, 6 Mar 2007 14:31:12 +0000 (14:31 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 6 Mar 2007 14:31:12 +0000 (14:31 +0000)
commit78c491b13bd3afea76a8bb3f30d13e417c768941
treee14ad4e8ab5774dbef717aa9515728b641aeda17
parenta1e3066e066f0f75da361f881b2f3198e0aada5f
add noDuplicate#
This primop ensures that the current computation is not being
duplicated, by calling threadPaused().  The idea is to use it inside
unsafePerformIO/unsafeInterleaveIO (see #986).
compiler/prelude/primops.txt.pp
rts/PrimOps.cmm