]> granicus.if.org Git - libevent/commit
evwatch: Add "prepare" and "check" watchers.
authorDan Rosen <mergeconflict@google.com>
Tue, 26 Mar 2019 17:33:57 +0000 (13:33 -0400)
committerDan Rosen <mergeconflict@google.com>
Wed, 3 Apr 2019 16:44:50 +0000 (12:44 -0400)
commit2f184f8bbf23377bddc8daa1a2c7b40735ee7e2a
treeba9a64a7831c8a209af752efd9b406a9a2b04a2c
parent47d348a63130c91f2a6aadef291ff5687275df72
evwatch: Add "prepare" and "check" watchers.

Adds two new callbacks: "prepare" watchers, which fire immediately
before we poll for I/O, and "check" watchers, which fire immediately
after we finish polling and before we process events. This allows other
event loops to be embedded into libevent's, and enables certain
performance monitoring.

Closes: #710
15 files changed:
.gitignore
CMakeLists.txt
Makefile.am
event-internal.h
event.c
include/event2/watch.h [new file with mode: 0644]
include/include.am
sample/include.am
sample/watch-timing.c [new file with mode: 0644]
test/include.am
test/regress.h
test/regress_main.c
test/regress_watch.c [new file with mode: 0644]
watch.c [new file with mode: 0644]
whatsnew-2.2.txt