X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ftimer.lisp;h=774ee2b4a6f768e0b039c1d565f836562f764b64;hb=8643c93d4db277f6e1cb880a42407ff29e19f618;hp=53523859208eafbb2425e281a2f726072ddf4f99;hpb=dcf8b8ccc1e15a5c1c6aba00204b7d3a81827acc;p=sbcl.git diff --git a/src/code/timer.lisp b/src/code/timer.lisp index 5352385..774ee2b 100644 --- a/src/code/timer.lisp +++ b/src/code/timer.lisp @@ -135,8 +135,6 @@ ;; FUNCTION until the other is called, from when it does nothing. (let ((mutex (sb!thread:make-mutex)) (cancelled-p nil)) - #!-sb-thread - (declare (ignore mutex)) (list #'(lambda () (sb!thread:with-recursive-lock (mutex) @@ -203,9 +201,7 @@ from now. For timers with a repeat interval it returns true." (defmacro with-scheduler-lock ((&optional) &body body) ;; don't let the SIGALRM handler mess things up - `(sb!sys:without-interrupts - (sb!thread:with-mutex (*scheduler-lock*) - ,@body))) + `(sb!thread::call-with-system-mutex (lambda () ,@body) *scheduler-lock*)) (defun under-scheduler-lock-p () #!-sb-thread