Renamed scsh-events to sigevents.

This commit is contained in:
mainzelm 2001-10-18 09:02:52 +00:00
parent f4c06c96e7
commit fe6a9db1e5
8 changed files with 20 additions and 20 deletions

View File

@ -630,7 +630,7 @@
call-before-heap-overflow! call-before-heap-overflow!
(interrupt :syntax))) (interrupt :syntax)))
(define-interface sigevents-interface (define-interface rts-sigevents-interface
(export rts-next-sigevent (export rts-next-sigevent
rts-next-sigevent/no-wait rts-next-sigevent/no-wait
most-recent-sigevent most-recent-sigevent
@ -638,7 +638,7 @@
sigevent-type sigevent-type
schedule-timer-interrupt!)) schedule-timer-interrupt!))
(define-interface sigevents-internal-interface (define-interface rts-sigevents-internal-interface
(export waiting-for-sigevent? (export waiting-for-sigevent?
initialize-sigevents!)) initialize-sigevents!))

View File

@ -292,8 +292,8 @@
methods methods
meta-methods meta-methods
interrupts interrupts
sigevents rts-sigevents
sigevents-internal rts-sigevents-internal
low-level low-level
more-types more-types
number-i/o number-i/o

View File

@ -226,8 +226,8 @@
(files (rts interrupt)) (files (rts interrupt))
(optimize auto-integrate)) ;mostly for threads package... (optimize auto-integrate)) ;mostly for threads package...
(define-structures ((sigevents sigevents-interface) (define-structures ((rts-sigevents rts-sigevents-interface)
(sigevents-internal sigevents-internal-interface)) (rts-sigevents-internal rts-sigevents-internal-interface))
(open scheme-level-1 define-record-types (open scheme-level-1 define-record-types
threads threads-internal threads threads-internal
interrupts interrupts
@ -283,7 +283,7 @@
interrupts ;with-interrupts-inhibited interrupts ;with-interrupts-inhibited
wind ;call-with-current-continuation wind ;call-with-current-continuation
channel-i/o ;waiting-for-i/o? channel-i/o ;waiting-for-i/o?
sigevents-internal) ;waiting-for-os-sigevent? rts-sigevents-internal) ;waiting-for-os-sigevent?
(access primitives) ;unspecific, wait (access primitives) ;unspecific, wait
(files (rts root-scheduler))) (files (rts root-scheduler)))
@ -331,7 +331,7 @@
thread-cells-internal ;initialize-dynamic-state! thread-cells-internal ;initialize-dynamic-state!
exceptions ;initialize-exceptions! exceptions ;initialize-exceptions!
interrupts ;initialize-interrupts! interrupts ;initialize-interrupts!
sigevents-internal ;initialize-sigevents! rts-sigevents-internal ;initialize-sigevents!
records-internal ;initialize-records! records-internal ;initialize-records!
export-the-record-type ;just what it says export-the-record-type ;just what it says
threads-internal ;start threads threads-internal ;start threads

View File

@ -114,8 +114,8 @@
;;; I'm really tired of opening everything (i.e. events) in scsh-level-0 ;;; I'm really tired of opening everything (i.e. events) in scsh-level-0
;;; this is here until someone (Olin !!!) cleans up the scsh modules ;;; this is here until someone (Olin !!!) cleans up the scsh modules
(define next-sigevent (structure-ref scsh-events next-sigevent)) (define next-sigevent (structure-ref sigevents next-sigevent))
(define most-recent-sigevent (structure-ref scsh-events most-recent-sigevent)) (define most-recent-sigevent (structure-ref sigevents most-recent-sigevent))
(define *autoreap-policy* #f) ; Not exported from this module. (define *autoreap-policy* #f) ; Not exported from this module.

View File

@ -1039,7 +1039,7 @@
interrupt/xcpu interrupt/xcpu
interrupt/xfsz)) interrupt/xfsz))
(define-interface scsh-events-interface (define-interface sigevents-interface
(export most-recent-sigevent (export most-recent-sigevent
sigevent? sigevent?
next-sigevent next-sigevent

View File

@ -140,7 +140,7 @@
; (scsh-regexp-package scsh-regexp-interface) ; (scsh-regexp-package scsh-regexp-interface)
) )
(for-syntax (open scsh-syntax-helpers scheme)) (for-syntax (open scsh-syntax-helpers scheme))
(access sigevents scsh-events threads) (access rts-sigevents sigevents threads)
(open enumerated (open enumerated
defenum-package defenum-package
external-calls ;JMG new FFI external-calls ;JMG new FFI
@ -284,7 +284,7 @@
scsh-utilities scsh-utilities
interrupts interrupts
low-interrupt low-interrupt
scsh-events sigevents
primitives primitives
scheme) scheme)
(files startup)) (files startup))
@ -300,7 +300,7 @@
extended-ports extended-ports
fluids fluids
interfaces interfaces
scsh-events sigevents
low-interrupt low-interrupt
fluids-internal ; JMG: get-dynamic-env fluids-internal ; JMG: get-dynamic-env
handle ; JMG: with-handler handle ; JMG: with-handler
@ -412,12 +412,12 @@
scheme) scheme)
(files here)) (files here))
(define-structure scsh-events scsh-events-interface (define-structure sigevents sigevents-interface
(open scsh-level-0 (open scsh-level-0
scheme scheme
structure-refs structure-refs
low-interrupt low-interrupt
sigevents) rts-sigevents)
(files event)) (files event))
(define-structure simple-syntax (export define-simple-syntax) (define-structure simple-syntax (export define-simple-syntax)

View File

@ -191,10 +191,10 @@
(run-as-long-as deliver-interrupts thunk)) (run-as-long-as deliver-interrupts thunk))
(define (deliver-interrupts) (define (deliver-interrupts)
(let lp ((last ((structure-ref scsh-events most-recent-sigevent)))) (let lp ((last ((structure-ref sigevents most-recent-sigevent))))
(let ((event ((structure-ref scsh-events next-sigevent-set) (let ((event ((structure-ref sigevents next-sigevent-set)
last full-interrupt-set))) last full-interrupt-set)))
(call-interrupt-handler ((structure-ref scsh-events sigevent-type) event)) (call-interrupt-handler ((structure-ref sigevents sigevent-type) event))
(lp event)))) (lp event))))
;;; I am ashamed to say the 33 below is completely bogus. ;;; I am ashamed to say the 33 below is completely bogus.

View File

@ -414,7 +414,7 @@
proc-group)))) proc-group))))
signal)) signal))
(define (itimer sec) (define (itimer sec)
((structure-ref scsh-events schedule-timer-interrupt!) (* sec 1000))) ((structure-ref sigevents schedule-timer-interrupt!) (* sec 1000)))
;;; SunOS, not POSIX: ;;; SunOS, not POSIX:
;;; (define-foreign signal-process-group/errno ;;; (define-foreign signal-process-group/errno
;;; (killpg (integer proc-group) (integer signal)) ;;; (killpg (integer proc-group) (integer signal))