Spawn-on-root the deliver-interrupts thread.
This commit is contained in:
parent
e710e9b121
commit
54a3d86c67
|
@ -188,7 +188,10 @@
|
||||||
(structure-ref threads-internal event-type)
|
(structure-ref threads-internal event-type)
|
||||||
interrupt)
|
interrupt)
|
||||||
(enum interrupt keyboard))))))
|
(enum interrupt keyboard))))))
|
||||||
(run-as-long-as deliver-interrupts thunk 'deliver-interrupts))
|
((structure-ref threads-internal spawn-on-root)
|
||||||
|
deliver-interrupts
|
||||||
|
'deliver-interrupts)
|
||||||
|
(thunk))
|
||||||
|
|
||||||
(define (deliver-interrupts)
|
(define (deliver-interrupts)
|
||||||
(let lp ((last ((structure-ref sigevents most-recent-sigevent))))
|
(let lp ((last ((structure-ref sigevents most-recent-sigevent))))
|
||||||
|
|
Loading…
Reference in New Issue