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 19:37:41 +0000 (21:37 +0200)
commit1533f1722de96f814c5e9de9aebc2892eb4bf882
tree9fe1e37f919a0767bd77b1779f22022d722b46f3
parent6b7d58cb4ee3ed7796a8dc67c214a1b8439fbaeb
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