diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-01-13 11:48:51 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-01-13 11:48:51 +0200 |
commit | 03e4ab0d586069be65e4a17fbf4cd965a9984726 (patch) | |
tree | 729d86e3282165ca0d58bec8bde33661c9b60ed9 /test/lisp/emacs-lisp/tabulated-list-test.el | |
parent | 62e27ebd54336d30a90ae71e5bdcb910e954c061 (diff) | |
download | emacs-03e4ab0d586069be65e4a17fbf4cd965a9984726.tar.gz emacs-03e4ab0d586069be65e4a17fbf4cd965a9984726.tar.bz2 emacs-03e4ab0d586069be65e4a17fbf4cd965a9984726.zip |
Fix a bug in waiting for condition variable
* src/thread.c (lisp_mutex_lock, lisp_mutex_unlock)
(lisp_mutex_unlock_for_wait, condition_wait_callback)
(condition_notify_callback): Improve commentary.
(condition_wait_callback): Call post_acquire_global_lock before
attempting to lock the mutex, to make sure the lock's owner is
recorded correctly.
* test/src/thread-tests.el (threads-condvar-wait): New test.
Diffstat (limited to 'test/lisp/emacs-lisp/tabulated-list-test.el')
0 files changed, 0 insertions, 0 deletions