[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(without-interrupts (with-interrupts ...))
- To: KMP at MIT-MC
- Subject: (without-interrupts (with-interrupts ...))
- From: Robert W. Kerns <RWK at MIT-MC>
- Date: Sat, 22 Aug 81 05:01:00 GMT
- Cc: BUG-LISP at MIT-MC
- Original-date: 22 August 1981 01:01-EDT
I do not agree that this is an ill-formed notion.
Consider:
(without-interrupts ;;don't interrupt until we're ready
(do () (()) ;;DO-FOREVER
(do-some-interrupt-critical-=stuff)
(do-some-more-stuff)
(if unusual-state (with-interrupts (interact-with-user)))))
WITHOUT-INTERRUPTS says we can't allow interrupts to happen at
indiscriminate points within the form. However, there may well
be points at which we do know interrupts are OK, and very likely
will be highly desirable. WITHOUT-INTERRUPTS and WITH-INTERRUPTS,
used together, provide an generalization of polling for interrupts.