diff options
| author | Tom Tromey | 2013-08-27 12:57:18 -0600 |
|---|---|---|
| committer | Tom Tromey | 2013-08-27 12:57:18 -0600 |
| commit | 8c46d17826ae89bfa22b5e8048c013c0e3a38b2d (patch) | |
| tree | f1db2f0c9f3aed10120139ec08a733db245b9a35 | |
| parent | 07efb140348b4a4015c69ed102a5fa216978506f (diff) | |
| download | emacs-8c46d17826ae89bfa22b5e8048c013c0e3a38b2d.tar.gz emacs-8c46d17826ae89bfa22b5e8048c013c0e3a38b2d.zip | |
rename thread-blocker to thread--blocker
| -rw-r--r-- | doc/lispref/threads.texi | 7 | ||||
| -rw-r--r-- | src/thread.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/lispref/threads.texi b/doc/lispref/threads.texi index 9c333546040..c846993172f 100644 --- a/doc/lispref/threads.texi +++ b/doc/lispref/threads.texi | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | @c -*-texinfo-*- | 1 | @c -*-texinfo-*- |
| 2 | @c This is part of the GNU Emacs Lisp Reference Manual. | 2 | @c This is part of the GNU Emacs Lisp Reference Manual. |
| 3 | @c Copyright (C) 2012 | 3 | @c Copyright (C) 2012, 2013 |
| 4 | @c Free Software Foundation, Inc. | 4 | @c Free Software Foundation, Inc. |
| 5 | @c See the file elisp.texi for copying conditions. | 5 | @c See the file elisp.texi for copying conditions. |
| 6 | @node Threads | 6 | @node Threads |
| @@ -101,9 +101,10 @@ Return @code{t} if @var{thread} is alive, or @code{nil} if it is not. | |||
| 101 | A thread is alive as long as its function is still executing. | 101 | A thread is alive as long as its function is still executing. |
| 102 | @end defun | 102 | @end defun |
| 103 | 103 | ||
| 104 | @defun thread-blocker thread | 104 | @defun thread--blocker thread |
| 105 | Return the object that @var{thread} is waiting on. This function is | 105 | Return the object that @var{thread} is waiting on. This function is |
| 106 | primarily intended for debugging. | 106 | primarily intended for debugging, and is given a ``double hyphen'' |
| 107 | name to indicate that. | ||
| 107 | 108 | ||
| 108 | If @var{thread} is blocked in @code{thread-join}, this returns the | 109 | If @var{thread} is blocked in @code{thread-join}, this returns the |
| 109 | thread for which it is waiting. | 110 | thread for which it is waiting. |
diff --git a/src/thread.c b/src/thread.c index 20d0568bef5..39a21518ec6 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -804,7 +804,7 @@ DEFUN ("thread-alive-p", Fthread_alive_p, Sthread_alive_p, 1, 1, 0, | |||
| 804 | return thread_alive_p (tstate) ? Qt : Qnil; | 804 | return thread_alive_p (tstate) ? Qt : Qnil; |
| 805 | } | 805 | } |
| 806 | 806 | ||
| 807 | DEFUN ("thread-blocker", Fthread_blocker, Sthread_blocker, 1, 1, 0, | 807 | DEFUN ("thread--blocker", Fthread_blocker, Sthread_blocker, 1, 1, 0, |
| 808 | doc: /* Return the object that THREAD is blocking on. | 808 | doc: /* Return the object that THREAD is blocking on. |
| 809 | If THREAD is blocked in `thread-join' on a second thread, return that | 809 | If THREAD is blocked in `thread-join' on a second thread, return that |
| 810 | thread. | 810 | thread. |