Add a note about the interruptibility of throwTo.
authorSimon Marlow <marlowsd@gmail.com>
Tue, 15 Jun 2010 11:27:20 +0000 (11:27 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 15 Jun 2010 11:27:20 +0000 (11:27 +0000)
GHC/Conc.lhs

index c1b2107..ec6e064 100644 (file)
@@ -310,7 +310,8 @@ In the paper, 'throwTo' is non-blocking; but the library implementation adopts
 a more synchronous design in which 'throwTo' does not return until the exception
 is received by the target thread.  The trade-off is discussed in Section 9 of the paper.
 Like any blocking operation, 'throwTo' is therefore interruptible (see Section 5.3 of
 a more synchronous design in which 'throwTo' does not return until the exception
 is received by the target thread.  The trade-off is discussed in Section 9 of the paper.
 Like any blocking operation, 'throwTo' is therefore interruptible (see Section 5.3 of
-the paper).
+the paper).  Unlike other interruptible operations, however, 'throwTo'
+is /always/ interruptible, even if it does not actually block.
 
 There is no guarantee that the exception will be delivered promptly,
 although the runtime will endeavour to ensure that arbitrary
 
 There is no guarantee that the exception will be delivered promptly,
 although the runtime will endeavour to ensure that arbitrary