tevent: Use eventfd for signal/thread wakeup
authorVolker Lendecke <vl@samba.org>
Fri, 12 Aug 2016 14:32:33 +0000 (16:32 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 23 Aug 2016 23:33:48 +0000 (01:33 +0200)
commitc7e2cb839df13bcbd14a05a39559366813b8c566
tree1e8660222a73bd6781808ca9443e91564c9da499
parentf40c171743d011e70e9674af312046034278b1e1
tevent: Use eventfd for signal/thread wakeup

According to the manpage, eventfd is cheaper than a pipe. At least, we can save
a file descriptor and space for it in struct tevent_context :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tevent/tevent.c
lib/tevent/tevent_internal.h