Cameron Gutman
408a93a1ec
wayland: Use multi-thread event reading APIs
...
Wayland provides the prepare_read()/read_events() family of APIs for
reading from the display fd in a deadlock-free manner across multiple
threads in a multi-threaded application. Let's use those instead of
trying to roll our own solution using a mutex.
This fixes an issue where a call to SDL_GL_SwapWindow() doesn't swap
buffers if it happens to collide with SDL_PumpEvents() in the main
thread. It also allows coexistence with other code or toolkits in
our process that may want read and dispatch events themselves.
2021-10-25 12:00:35 -04:00
..
2021-10-13 09:33:51 -07:00
2019-10-24 21:17:52 -04:00
2021-10-23 17:45:27 -04:00
2021-10-24 22:27:56 -04:00
2021-06-17 22:11:10 -04:00
2021-08-14 17:04:46 +01:00
2021-03-13 18:36:01 -08:00
2021-08-25 10:50:21 -10:00
2021-10-22 05:50:00 -07:00
2021-08-10 12:07:32 -07:00
2021-01-02 10:25:38 -08:00
2021-10-18 14:10:56 +03:00
2021-02-10 10:22:16 -05:00
2021-02-10 10:22:16 -05:00
2020-10-08 16:42:20 -07:00
2021-02-10 10:22:16 -05:00
2021-10-21 21:21:57 -07:00
2021-09-16 09:03:17 -07:00
2021-01-02 10:25:38 -08:00
2021-10-25 12:00:35 -04:00
2021-10-21 17:37:20 -07:00
2021-08-04 02:30:47 -04:00
2021-10-24 15:54:57 -05:00
2021-10-17 22:02:19 +02:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-09-28 11:27:56 -07:00
2021-03-04 14:36:33 +01:00
2021-01-02 10:25:38 -08:00
2021-08-06 12:28:24 -07:00
2021-01-02 10:25:38 -08:00
2021-03-11 20:06:09 +01:00
2021-03-04 14:33:56 +01:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-02-25 11:38:14 -08:00
2021-06-17 11:23:47 -07:00
2021-01-02 10:25:38 -08:00
2021-09-23 00:03:26 -04:00
2021-09-27 13:53:16 -04:00
2021-03-04 18:27:56 +03:00
2021-10-22 05:50:00 -07:00
2021-10-22 05:50:00 -07:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-04-28 23:40:26 +02:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-03-04 14:33:56 +01:00
2021-08-27 14:09:47 +02:00
2021-10-21 17:37:20 -07:00
2021-10-21 17:37:20 -07:00
2021-01-02 10:25:38 -08:00
2021-04-29 22:25:00 +02:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-03-04 14:33:56 +01:00