winit/src/platform_impl/linux
Riku Salminen ab0a34012f x11: thread safe replacement for XNextEvent (#782)
XNextEvent will block for input while holding the global Xlib mutex.

This will cause a deadlock in even the most trivial multi-threaded
application because OpenGL functions will need to hold the Xlib mutex
too.

Add EventsLoop::poll_one_event and EventsLoop::wait_for_input to provide
thread-safe functions to poll and wait events from the X11 event queue
using unix select(2) and XCheckIfEvent.

This is a somewhat ugly workaround to an ugly problem.

Fixes #779
2019-04-07 16:41:52 +02:00
..
wayland Wayland's eventloop 2.0 (#790) 2019-02-21 10:51:43 +01:00
x11 x11: thread safe replacement for XNextEvent (#782) 2019-04-07 16:41:52 +02:00
dlopen.rs Event Loop 2.0 API and Windows implementation (#638) 2019-02-05 10:30:33 -05:00
mod.rs Wayland's eventloop 2.0 (#790) 2019-02-21 10:51:43 +01:00