(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)
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)
#!-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."
(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)