event loop: improve implementation of watches for Unix systems

Enterprise / Virtualization / SPICE - Frediano Ziglio [redhat.com] - 24 July 2019 10:19 EDT

Avoid having to destroy and create a new GSource every time we change event mask. Interfaces required for this patch are available since GLib 2.36 and are specific to Unix. On Windows use old implementation.

6c1e2c41 event loop: improve implementation of watches for Unix systems
server/event-loop.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 82 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org


  • Share