glfw/docs
Camilla Löwy cd22e28495 X11: Fix empty event race condition with a pipe
There is a seemingly unavoidable race condition when waiting for data on
the X11 display connection, as long as any other thread is also making
Xlib calls.  The event data we are waiting for could be read by the
other thread as part of looking for the reply to its request, before our
poll has begun.

This commit replaces the X11 event sent by glfwPostEmptyEvent with
writing to an unnamed pipe.  The race condition remains if other Xlib
calls are made on other threads, but glfwPostEmptyEvent should now be
race-free.

This commit is based on work by pcwalton, OlivierSohn, kovidgoyal and
joaodasilva.

Closes #2033
Related to #379
Related to #1281
Related to #1285
2022-03-03 22:16:59 +01:00
..
build.dox
CMakeLists.txt
CODEOWNERS
compat.dox Wayland: Require xkbcommon 0.5.0 or greater 2021-12-31 13:27:22 +01:00
compile.dox Add glfwInitVulkanLoader 2021-10-27 18:22:05 +02:00
context.dox
CONTRIBUTING.md
Doxyfile.in Remove Doxyfile tag deprecated by Doxygen 1.9.3 2022-02-02 21:49:06 +01:00
DoxygenLayout.xml
extra.css Improve headings and TOC layout in Doxygen docs 2021-10-25 23:38:41 +02:00
extra.css.map Improve headings and TOC layout in Doxygen docs 2021-10-25 23:38:41 +02:00
extra.scss Improve headings and TOC layout in Doxygen docs 2021-10-25 23:38:41 +02:00
footer.html
header.html
input.dox
internal.dox Add runtime platform selection 2021-10-13 21:47:11 +02:00
intro.dox Add glfwInitVulkanLoader 2021-10-27 18:22:05 +02:00
main.dox
monitor.dox
moving.dox
news.dox X11: Fix empty event race condition with a pipe 2022-03-03 22:16:59 +01:00
quick.dox
spaces.svg
SUPPORT.md
vulkan.dox Add glfwInitVulkanLoader 2021-10-27 18:22:05 +02:00
window.dox Use Win32 instead of Windows in Doxygen headings 2021-10-23 20:28:47 +02:00