Don't use select-registry primitives unless the operating system
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Wed, 7 Jul 1993 20:01:39 +0000 (20:01 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Wed, 7 Jul 1993 20:01:39 +0000 (20:01 +0000)
supports the `select' system Call.

v7/src/runtime/runtime.pkg
v7/src/runtime/thread.scm
v8/src/runtime/runtime.pkg

index 2fde34c1318e6192eee07c9d020886ce511070d1..0beb1ac7501a973bddfa17017b4e35f9db62a601 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: runtime.pkg,v 14.183 1993/07/01 23:07:57 cph Exp $
+$Id: runtime.pkg,v 14.184 1993/07/07 20:01:39 gjr Exp $
 
 Copyright (c) 1988-1993 Massachusetts Institute of Technology
 
@@ -1690,6 +1690,8 @@ MIT in each case. |#
          port-error-test)
   (export (runtime x-graphics)
          have-select?)
+  (export (runtime thread)
+         have-select?)
   (initialization (initialize-package!)))
 
 (define-package (runtime program-copier)
index ed139c272c3348c1f05e030e2d8bcb7fded5a7ca..e6bcd2f0398f5b8eb67b679fdd5880b0b3b61190 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: thread.scm,v 1.15 1993/07/01 23:08:04 cph Exp $
+$Id: thread.scm,v 1.16 1993/07/07 20:01:27 gjr Exp $
 
 Copyright (c) 1991-1993 Massachusetts Institute of Technology
 
@@ -387,7 +387,7 @@ MIT in each case. |#
   next)
 
 (define (initialize-input-blocking)
-  (set! input-registry (make-select-registry))
+  (set! input-registry (and have-select? (make-select-registry)))
   (set! input-registrations #f)
   unspecific)
 
index 2fde34c1318e6192eee07c9d020886ce511070d1..0beb1ac7501a973bddfa17017b4e35f9db62a601 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: runtime.pkg,v 14.183 1993/07/01 23:07:57 cph Exp $
+$Id: runtime.pkg,v 14.184 1993/07/07 20:01:39 gjr Exp $
 
 Copyright (c) 1988-1993 Massachusetts Institute of Technology
 
@@ -1690,6 +1690,8 @@ MIT in each case. |#
          port-error-test)
   (export (runtime x-graphics)
          have-select?)
+  (export (runtime thread)
+         have-select?)
   (initialization (initialize-package!)))
 
 (define-package (runtime program-copier)