(define-integrable get-interrupt-enables
(ucode-primitive get-interrupt-enables 0))
-(define-integrable interrupt-mask/in-threads interrupt-mask/none)
-
(define-integrable (interrupt-mask-ok?)
(fix:= 0 (get-interrupt-enables)))
(define-integrable (lock)
;; (%assert (eq? interrupt-mask/all (get-interrupt-enables)) "lock: unexpected interrupt mask")
(%assert (not locked?) "lock: already locked!")
- (set-interrupt-enables! interrupt-mask/in-threads)
+ (set-interrupt-enables! interrupt-mask/none)
(%lock))
(define (%lock)