]> git.lyx.org Git - features.git/commit
Fix race condition in processFuncRequestQueue
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 10 Feb 2018 14:35:12 +0000 (15:35 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 10 Feb 2018 17:32:03 +0000 (18:32 +0100)
commitfe414fcdd8a7c4d0aaf8b30afade7dc0d59ab2b7
tree4e4a8c0dee2369ff895c193f01bf1392a5528a55
parente43bf58223b5b4207211521b417c2ebf7c6b2fa3
Fix race condition in processFuncRequestQueue

The issue here was that the element was only removed from the queue
after the func request was processed, but within that process, other
function could access the queue, so the queue could even be empty
when this function finally wanted to remove the item.

Fixes: #10406.
(cherry picked from commit dadec50a18d92d24d42e1ccf7474f07a2a66b5b4)
src/frontends/qt4/GuiApplication.cpp