]> git.eshelyaron.com Git - emacs.git/commit
Fix race conditions between Lisp threads in GTK builds
authorEli Zaretskii <eliz@gnu.org>
Fri, 25 Jun 2021 13:52:48 +0000 (16:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 25 Jun 2021 13:52:48 +0000 (16:52 +0300)
commit6e0bff0296b08fe96b7060f8d10eaa393fcb7bd4
treea60daf796920ef9e18293f0b30538d294517f6c4
parent2fbe17c49ab8c413f5036e60ee31a56c3ed435da
Fix race conditions between Lisp threads in GTK builds

* src/xgselect.c (release_select_lock, acquire_select_lock)
[GCC >= 4.7.0]: Use '__atomic' builtins to prevent races between
threads in accessing 'threads_holding_glib_lock'.  Reported by
<dick.r.chiang@gmail.com>.  (Bug#36609)
src/xgselect.c