]> git.eshelyaron.com Git - emacs.git/commit
Fix lock failures in xg_select
authorPip Cet <pipcet@gmail.com>
Fri, 21 Aug 2020 12:56:06 +0000 (14:56 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 21 Aug 2020 12:56:06 +0000 (14:56 +0200)
commit9c62ffb08262c82b7e38e6eb5767f2087424aa47
treeea2a18eabffded063b40af0623b2485b10ad44dc
parent19ee08f1e8599ce0e0465f6ffbd4a76791d791b4
Fix lock failures in xg_select

* src/xgselect.c (release_select_lock, acquire_select_lock):
Introduce.
(xg_select): Use `acquire_select_lock', `release_select_lock'.
* src/thread.c (release_select_lock): Introduce for non-GLib builds.
(really_call_select): Call `release_select_lock'.  Simplify by
ensuring acquisition of the lock always succeeds (bug#36609).
src/thread.c
src/xgselect.c
src/xgselect.h