X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-sprof%2Fsb-sprof.lisp;h=7d2374edb912b1f4cf5ce7cf040c5ba8ddce2542;hb=82f9c527cb607ccd19e5b24261dfe9af7b1ba72e;hp=b7a9dcc90811223d4af7c22d93dad2293eb9ccaf;hpb=0adc5551b93e9c3ac86d584a28009633e4615c96;p=sbcl.git diff --git a/contrib/sb-sprof/sb-sprof.lisp b/contrib/sb-sprof/sb-sprof.lisp index b7a9dcc..7d2374e 100644 --- a/contrib/sb-sprof/sb-sprof.lisp +++ b/contrib/sb-sprof/sb-sprof.lisp @@ -492,9 +492,10 @@ profiling") (defun profiled-threads () (let ((profiled-threads *profiled-threads*)) - (if (eq :all profiled-threads) - (remove *timer-thread* (sb-thread:list-all-threads)) - profiled-threads))) + (remove *timer-thread* + (if (eq :all profiled-threads) + (sb-thread:list-all-threads) + profiled-threads)))) (defun profiled-thread-p (thread) (let ((profiled-threads *profiled-threads*)) @@ -508,7 +509,8 @@ profiling") (defvar *profiler-lock* (sb-thread:make-mutex :name "Statistical Profiler")) (defvar *distribution-lock* (sb-thread:make-mutex :name "Wallclock profiling lock")) - (define-alien-routine pthread-kill int (signal int) (os-thread unsigned-long)) + (declaim (inline pthread-kill)) + (define-alien-routine pthread-kill int (os-thread unsigned-long) (signal int)) ;;; A random thread will call this in response to either a timer firing, ;;; This in turn will distribute the notice to those threads we are