Commit f927efd7 authored by Thiago Macieira's avatar Thiago Macieira Committed by The Qt Project
Browse files

Add support for Linux eventfd(7) in the UNIX event loop


eventfd(7) uses less resources than a pipe, as it only needs to store a
single 64-bit integer, as opposed to a full buffer.

It was introduced first on Linux version 2.6.22 and glibc 2.7. However,
both the configure-time test and the runtime usage require the use of
EFD_CLOEXEC for thread-safety, so this code will be enabled only for
Linux 2.6.27 and up as well as glibc 2.9 and up.

Change-Id: Ic7e10b28d7b1d4ca24be614ed84055c4429a68e4
Reviewed-by: default avatarRobin Burchell <robin+qt@viroteck.net>
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
parent dbfa6518
Showing with 112 additions and 4 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment