Save "block-thread-events" flag in continuations. This guarantees
authorChris Hanson <org/chris-hanson/cph>
Wed, 24 Feb 1999 05:18:12 +0000 (05:18 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 24 Feb 1999 05:18:12 +0000 (05:18 +0000)
that it will be properly stored no matter where the continuation is
captured.

v7/src/runtime/thread.scm

index ef2e681829662013e9bd502dfcb43ac84cc6df0f..4c0bc38d001d593039175aa7c01933469b03a8aa 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: thread.scm,v 1.29 1999/02/24 04:53:43 cph Exp $
+$Id: thread.scm,v 1.30 1999/02/24 05:18:12 cph Exp $
 
 Copyright (c) 1991-1999 Massachusetts Institute of Technology
 
@@ -243,6 +243,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
              (call-with-current-continuation
               (lambda (continuation)
                 (set-thread/continuation! thread continuation)
+                (set-thread/block-events?! thread #f)
                 (thread-not-running thread 'WAITING)))))))))
 
 (define (stop-current-thread)