CONDITION-WAIT on threadless builds now reads TIMEOUT.
Stray MUTEX/LOCK naming confusion.
#+sb-thread on more mailbox test.
#!+sb-thread %WAIT-FOR-MUTEX for cleanliness.
(3 nil (#\1 #\2 #\3) nil)
(0 t nil t))
+#+sb-thread
(deftest mailbox-timeouts
(let* ((mbox (make-mailbox))
(writers (loop for i from 1 upto 20
;; Spin.
(go :retry))))
+#!+sb-thread
(defun %wait-for-mutex (mutex self timeout to-sec to-usec stop-sec stop-usec deadlinep)
(with-deadlocks (self mutex timeout)
(with-interrupts (check-deadlock))
(push data *data*)
(condition-notify *queue*)))
"
- #!-sb-thread (declare (ignore queue timeout))
+ #!-sb-thread
+ (declare (ignore queue))
(assert mutex)
#!-sb-thread
(wait-for nil :timeout timeout) ; Yeah...
(funcall function)))
(defun call-with-recursive-system-lock/without-gcing (function mutex)
- (declare (function function) (ignore lock))
+ (declare (function function) (ignore mutex))
(without-gcing
(funcall function))))