fix unthreaded build
authorNikodemus Siivola <nikodemus@random-state.net>
Thu, 10 Nov 2011 17:09:37 +0000 (19:09 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Thu, 10 Nov 2011 17:38:22 +0000 (19:38 +0200)
  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.

contrib/sb-concurrency/tests/test-mailbox.lisp
src/code/target-thread.lisp
src/code/thread.lisp

index db4b221..e6cee14 100644 (file)
@@ -38,6 +38,7 @@
   (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
index 0d0ccb9..553dc67 100644 (file)
@@ -493,6 +493,7 @@ HOLDING-MUTEX-P."
        ;; 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))
@@ -732,7 +733,8 @@ around the call, checking the the associated data:
       (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...
index c471fc9..6e42788 100644 (file)
@@ -207,7 +207,7 @@ provided the default value is used for the mutex."
       (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))))