Typos in comments [ci skip]
[ghc.git] / rts / RaiseAsync.h
index 6f7c305..3f65e25 100644 (file)
 #define THROWTO_BLOCKED   1
 
 #ifndef CMINUSMINUS
+
+#include "BeginPrivate.h"
+
+StgTSO* raiseAsync (Capability *cap,
+                    StgTSO *tso,
+                    StgClosure *exception,
+                    bool stop_at_atomically,
+                    StgUpdateFrame *stop_here);
+
 void throwToSingleThreaded (Capability *cap,
-                           StgTSO *tso,
-                           StgClosure *exception);
-
-void throwToSingleThreaded_ (Capability *cap, 
-                            StgTSO *tso, 
-                            StgClosure *exception, 
-                            rtsBool stop_at_atomically);
-
-void suspendComputation (Capability *cap, 
-                        StgTSO *tso, 
-                        StgUpdateFrame *stop_here);
-
-nat throwTo (Capability *cap,           // the Capability we hold 
-            StgTSO *source,             // the TSO sending the exception
-            StgTSO *target,             // the TSO receiving the exception
-            StgClosure *exception,      // the exception closure
-            /*[out]*/ void **out   // pass to throwToReleaseTarget()
-    );
-
-#ifdef THREADED_RTS
-void throwToReleaseTarget (void *tso);
-#endif
+                            StgTSO *tso,
+                            StgClosure *exception);
+
+void throwToSingleThreaded_ (Capability *cap,
+                             StgTSO *tso,
+                             StgClosure *exception,
+                             bool stop_at_atomically);
+
+void throwToSelf (Capability *cap,
+                  StgTSO *tso,
+                  StgClosure *exception);
+
+void suspendComputation (Capability *cap,
+                         StgTSO *tso,
+                         StgUpdateFrame *stop_here);
+
+MessageThrowTo *throwTo (Capability *cap,      // the Capability we hold
+                         StgTSO *source,
+                         StgTSO *target,
+                         StgClosure *exception); // the exception closure
+
+uint32_t throwToMsg (Capability *cap,
+                MessageThrowTo *msg);
 
 int  maybePerformBlockedException (Capability *cap, StgTSO *tso);
 void awakenBlockedExceptionQueue  (Capability *cap, StgTSO *tso);
@@ -49,7 +59,9 @@ interruptible(StgTSO *t)
 {
   switch (t->why_blocked) {
   case BlockedOnMVar:
-  case BlockedOnException:
+  case BlockedOnSTM:
+  case BlockedOnMVarRead:
+  case BlockedOnMsgThrowTo:
   case BlockedOnRead:
   case BlockedOnWrite:
 #if defined(mingw32_HOST_OS)
@@ -64,7 +76,8 @@ interruptible(StgTSO *t)
   }
 }
 
+#include "EndPrivate.h"
+
 #endif /* CMINUSMINUS */
 
 #endif /* RAISEASYNC_H */
-