X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fthread.lisp;h=e45fa64bd5bf16f32b357a95413522e142bddb84;hb=c712f88b26cd7547ee984b90e18c134401335bc3;hp=f73c9bd6eff758308b167583568d0455e3539cf9;hpb=239125681cb03e2cce08a50e9bf03589956fd125;p=sbcl.git diff --git a/src/code/thread.lisp b/src/code/thread.lisp index f73c9bd..e45fa64 100644 --- a/src/code/thread.lisp +++ b/src/code/thread.lisp @@ -11,6 +11,9 @@ (in-package "SB!THREAD") +(eval-when (:compile-toplevel :load-toplevel :execute) + (sb!xc:proclaim '(sb!ext:always-bound *current-thread*))) + (def!type thread-name () 'simple-string) @@ -20,6 +23,7 @@ in future versions." (name nil :type (or thread-name null)) (%alive-p nil :type boolean) + (%ephemeral-p nil :type boolean) (os-thread nil :type (or integer null)) (interruptions nil :type list) (result nil :type list) @@ -228,7 +232,7 @@ held mutex, WITH-RECURSIVE-LOCK allows recursive lock attempts to succeed." #!-sb-thread (progn (defun call-with-mutex (function mutex value waitp timeout) - (declare (ignore mutex value waitp timeout) + (declare (ignore mutex waitp timeout) (function function)) (unless (or (null value) (eq *current-thread* value)) (error "~S called with non-nil :VALUE that isn't the current thread." @@ -236,7 +240,8 @@ held mutex, WITH-RECURSIVE-LOCK allows recursive lock attempts to succeed." (funcall function)) (defun call-with-recursive-lock (function mutex waitp timeout) - (declare (ignore mutex) (function function waitp timeout)) + (declare (ignore mutex waitp timeout) + (function function)) (funcall function)) (defun call-with-recursive-system-lock (function lock)