From: Chris Hanson Date: Tue, 27 Jul 1993 00:46:44 +0000 (+0000) Subject: Add new procedure ALLOW-THREAD-EVENT-DELIVERY. X-Git-Tag: 20090517-FFI~8176 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=aab6739e0b252f35fab972571c146af737038824;p=mit-scheme.git Add new procedure ALLOW-THREAD-EVENT-DELIVERY. --- diff --git a/v7/src/runtime/runtime.pkg b/v7/src/runtime/runtime.pkg index c2f483073..5a601ac6d 100644 --- a/v7/src/runtime/runtime.pkg +++ b/v7/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: runtime.pkg,v 14.185 1993/07/18 22:25:37 gjr Exp $ +$Id: runtime.pkg,v 14.186 1993/07/27 00:46:44 cph Exp $ Copyright (c) 1988-1993 Massachusetts Institute of Technology @@ -2454,6 +2454,7 @@ MIT in each case. |# (files "thread") (parent ()) (export () + allow-thread-event-delivery block-thread-events condition-type:thread-dead condition-type:thread-deadlock diff --git a/v7/src/runtime/thread.scm b/v7/src/runtime/thread.scm index e6bcd2f03..0a5aef6cb 100644 --- a/v7/src/runtime/thread.scm +++ b/v7/src/runtime/thread.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: thread.scm,v 1.16 1993/07/07 20:01:27 gjr Exp $ +$Id: thread.scm,v 1.17 1993/07/27 00:46:36 cph Exp $ Copyright (c) 1991-1993 Massachusetts Institute of Technology @@ -239,6 +239,17 @@ MIT in each case. |# (set-thread/block-events?! thread block-events?) event)))) +(define (allow-thread-event-delivery) + (without-interrupts + (lambda () + (let ((thread (current-thread))) + (let ((block-events? (thread/block-events? thread))) + (set-thread/block-events?! thread #f) + (deliver-timer-events) + (maybe-signal-input-thread-events) + (handle-thread-events thread) + (set-thread/block-events?! thread block-events?)))))) + (define (stop-current-thread) (without-interrupts (lambda () diff --git a/v8/src/runtime/runtime.pkg b/v8/src/runtime/runtime.pkg index c2f483073..5a601ac6d 100644 --- a/v8/src/runtime/runtime.pkg +++ b/v8/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: runtime.pkg,v 14.185 1993/07/18 22:25:37 gjr Exp $ +$Id: runtime.pkg,v 14.186 1993/07/27 00:46:44 cph Exp $ Copyright (c) 1988-1993 Massachusetts Institute of Technology @@ -2454,6 +2454,7 @@ MIT in each case. |# (files "thread") (parent ()) (export () + allow-thread-event-delivery block-thread-events condition-type:thread-dead condition-type:thread-deadlock