@c -*-texinfo-*-
@c This is part of the GNU Emacs Lisp Reference Manual.
-@c Copyright (C) 2012
+@c Copyright (C) 2012, 2013
@c Free Software Foundation, Inc.
@c See the file elisp.texi for copying conditions.
@node Threads
A thread is alive as long as its function is still executing.
@end defun
-@defun thread-blocker thread
+@defun thread--blocker thread
Return the object that @var{thread} is waiting on. This function is
-primarily intended for debugging.
+primarily intended for debugging, and is given a ``double hyphen''
+name to indicate that.
If @var{thread} is blocked in @code{thread-join}, this returns the
thread for which it is waiting.
return thread_alive_p (tstate) ? Qt : Qnil;
}
-DEFUN ("thread-blocker", Fthread_blocker, Sthread_blocker, 1, 1, 0,
+DEFUN ("thread--blocker", Fthread_blocker, Sthread_blocker, 1, 1, 0,
doc: /* Return the object that THREAD is blocking on.
If THREAD is blocked in `thread-join' on a second thread, return that
thread.