add threadStatus# primop, for querying the status of a ThreadId#
[ghc-hetmet.git] / compiler / prelude / primops.txt.pp
index 302640d..39ae85d 100644 (file)
@@ -1531,6 +1531,11 @@ primop  NoDuplicateOp "noDuplicate#" GenPrimOp
    with
    out_of_line = True
 
+primop  ThreadStatusOp "threadStatus#" GenPrimOp
+   ThreadId# -> State# RealWorld -> (# State# RealWorld, Int# #)
+   with
+   out_of_line = True
+
 ------------------------------------------------------------------------
 section "Weak pointers"
 ------------------------------------------------------------------------