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

v7/src/runtime/thread.scm

index 23626b38c0ab36ceb5c840799e6fc3ba79734e9d..ef2e681829662013e9bd502dfcb43ac84cc6df0f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: thread.scm,v 1.28 1999/02/24 04:51:57 cph Exp $
+$Id: thread.scm,v 1.29 1999/02/24 04:53:43 cph Exp $
 
 Copyright (c) 1991-1999 Massachusetts Institute of Technology
 
@@ -648,15 +648,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
      (let ((thread first-running-thread))
        (if thread
           (thread/block-events? thread)
-          'NO-CURRENT-THREAD)))))
+          #f)))))
 
 (define (set-thread-event-block! block?)
-  (if (boolean? block?)
-      (without-interrupts
-       (lambda ()
-        (let ((thread first-running-thread))
-          (if thread
-              (set-thread/block-events?! thread block?)))))))
+  (without-interrupts
+   (lambda ()
+     (let ((thread first-running-thread))
+       (if thread
+          (set-thread/block-events?! thread block?))))))
 
 (define (signal-thread-event thread event)
   (guarantee-thread thread signal-thread-event)