projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new primitive forkOn#, for forking a thread on a specific Capability
[ghc-hetmet.git]
/
ghc
/
compiler
/
prelude
/
primops.txt.pp
diff --git
a/ghc/compiler/prelude/primops.txt.pp
b/ghc/compiler/prelude/primops.txt.pp
index
ecde882
..
13b4b6c
100644
(file)
--- a/
ghc/compiler/prelude/primops.txt.pp
+++ b/
ghc/compiler/prelude/primops.txt.pp
@@
-1441,6
+1441,13
@@
primop ForkOp "fork#" GenPrimOp
has_side_effects = True
out_of_line = True
has_side_effects = True
out_of_line = True
+primop ForkOnOp "forkOn#" GenPrimOp
+ Int# -> a -> State# RealWorld -> (# State# RealWorld, ThreadId# #)
+ with
+ usage = { mangle ForkOnOp [mkO, mkP] mkR }
+ has_side_effects = True
+ out_of_line = True
+
primop KillThreadOp "killThread#" GenPrimOp
ThreadId# -> a -> State# RealWorld -> State# RealWorld
with
primop KillThreadOp "killThread#" GenPrimOp
ThreadId# -> a -> State# RealWorld -> State# RealWorld
with