X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FException.h;h=890c5165ad0d4f6a94988c23ae53b01a706c1f23;hb=153b9cb9b11e05c4edb1b6bc0a7b972660e41f70;hp=3e150f96287bf195a697c359401ea7cca83da1a1;hpb=34a98f40dea6d31ced5213b7810dc39b4989c395;p=ghc-hetmet.git diff --git a/ghc/rts/Exception.h b/ghc/rts/Exception.h index 3e150f9..890c516 100644 --- a/ghc/rts/Exception.h +++ b/ghc/rts/Exception.h @@ -1,5 +1,4 @@ /* ----------------------------------------------------------------------------- - * $Id: Exception.h,v 1.3 2000/11/13 14:40:37 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -7,14 +6,14 @@ * * ---------------------------------------------------------------------------*/ -extern const StgInfoTable stg_blockAsyncExceptionszh_ret_info; -extern const StgInfoTable stg_unblockAsyncExceptionszh_ret_info; +extern const StgRetInfoTable stg_blockAsyncExceptionszh_ret_info; +extern const StgRetInfoTable stg_unblockAsyncExceptionszh_ret_info; /* Determine whether a thread is interruptible (ie. blocked * indefinitely). Interruptible threads can be sent an exception with * killThread# even if they have async exceptions blocked. */ -static __inline__ int +INLINE_HEADER int interruptible(StgTSO *t) { switch (t->why_blocked) { @@ -22,9 +21,15 @@ interruptible(StgTSO *t) case BlockedOnException: case BlockedOnRead: case BlockedOnWrite: +#if defined(mingw32_HOST_OS) + case BlockedOnDoProc: +#endif case BlockedOnDelay: return 1; + // NB. Threaded blocked on foreign calls (BlockedOnCCall) are + // *not* interruptible. We can't send these threads an exception. default: return 0; } } +