tevent: add tevent_queue_add_entry() and tevent_queue_add_optimize_empty()
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Jul 2011 08:45:22 +0000 (10:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 9 Aug 2011 14:17:10 +0000 (16:17 +0200)
commit88bc3f3d56bc8d60940dbc340630fbb08245cf84
tree03b9776499e5513fc3e427e734a3654da2b290c7
parentbd8b2f4fb071e4bc2414a1bc9f42686f7e63fb8e
tevent: add tevent_queue_add_entry() and tevent_queue_add_optimize_empty()

This adds more flexible handling for the add operation:

- It allows the caller to remove a tevent_req from the queue
  by calling talloc_free() on the returned tevent_queue_entry.
- It allows the caller to optimize for the empty queue case,
  where it the caller wants to avoid the delay caused by
  the immediate event.

metze
lib/tevent/tevent.h
lib/tevent/tevent_queue.c