#| -*-Scheme-*-
-$Id: contin.scm,v 14.9 1999/02/24 04:40:59 cph Exp $
+$Id: contin.scm,v 14.10 1999/02/24 04:44:04 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
(define-integrable (continuation/dynamic-state continuation)
(%continuation/dynamic-state (entity-extra continuation)))
+(define-integrable (continuation/block-thread-events? continuation)
+ (%continuation/block-thread-events? (entity-extra continuation)))
+
(define-structure (%continuation (constructor make-%continuation)
(conc-name %continuation/))
(control-point #f read-only #t)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.316 1999/02/23 21:31:53 cph Exp $
+$Id: runtime.pkg,v 14.317 1999/02/24 04:41:22 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
thread-timer-interrupt-handler)
(export (runtime primitive-io)
block-on-input-descriptor)
+ (export (runtime continuation)
+ get-thread-event-block
+ set-thread-event-block!)
(initialization (initialize-package!)))
(define-package (runtime rb-tree)
#| -*-Scheme-*-
-$Id: thread.scm,v 1.26 1999/02/24 04:41:06 cph Exp $
+$Id: thread.scm,v 1.27 1999/02/24 04:43:19 cph Exp $
Copyright (c) 1991-1999 Massachusetts Institute of Technology
(maybe-signal-input-thread-events)
(let ((any-events? (handle-thread-events thread)))
(set-thread/block-events?! thread block-events?)
- (if (not events?)
+ (if (not any-events?)
(call-with-current-continuation
(lambda (continuation)
(set-thread/continuation! thread continuation)
(lambda ()
(let ((thread first-running-thread))
(if thread
- (set-thread/block-events? thread block?)))))))
+ (set-thread/block-events?! thread block?)))))))
(define (signal-thread-event thread event)
(guarantee-thread thread signal-thread-event)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.321 1999/02/23 21:31:59 cph Exp $
+$Id: runtime.pkg,v 14.322 1999/02/24 04:41:10 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
thread-timer-interrupt-handler)
(export (runtime primitive-io)
block-on-input-descriptor)
+ (export (runtime continuation)
+ get-thread-event-block
+ set-thread-event-block!)
(initialization (initialize-package!)))
(define-package (runtime rb-tree)