summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_queue.c
AgeCommit message (Collapse)AuthorFilesLines
2023-07-19tevent: Flow: add tevent_thread_call_depth_set_callback()Pavel Filipenský1-1/+12
Note the tevent-0.14.1.sigs changes will be reverted in the 'tevent 0.15.0' commit. Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2023-07-19tevent: Flow: store trigger function name in tevent_queue_entryPavel Filipenský1-4/+51
Note the tevent-0.14.1.sigs changes will be reverted in the 'tevent 0.15.0' commit. Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2023-01-18tevent: Call depth trackingPavel Filipenský1-0/+2
The change to lib/tevent/ABI/tevent-0.13.0.sigs will be reverted in the commit for the 0.14.0 release... Signed-off-by: Pavel Filipenský <pfilipen@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2022-04-11tevent: Add tevent queue tracing supportPavel Filipenský1-0/+26
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2022-04-11tevent: Use internally an empty trigger function for blocker requestsPavel Filipenský1-1/+7
This avoids special magic, but keeps the same external behavior. It makes the following changes easier to understand. Signed-off-by: Pavel Filipenský <pfilipen@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2022-04-11tevent: Move the code below the trigger checkPavel Filipenský1-6/+6
This makes the next commit smaller. Signed-off-by: Pavel Filipenský <pfilipen@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2018-02-23tevent: add tevent_queue_entry_untrigger()Stefan Metzmacher1-0/+13
Pair-Programmed-With: Volker Lendecke <vl@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Volker Lendecke <vl@samba.org>
2016-08-20tevent: Fix a typoVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2016-02-06tevent: remove unneeded type argument from DLIST_ADD_ENDMichael Adam1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-01-17tevent: fix crash bug in tevent_queue_immediate_trigger()Stefan Metzmacher1-0/+4
Assume we we have a queue with 2 entries (A and B with triggerA() and triggerB()). If triggerA() removes itself tevent_queue_entry_destructor() will be called for A, this schedules the immediate event to call triggerB(). If triggerA() then also removes B by an explicit of implizit talloc_free(), q->list is NULL, but the immediate event is still scheduled and can't be unscheduled. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2013-12-17tevent: Fix CID 1138326 Unchecked return valueVolker Lendecke1-1/+1
For this case we explicitly have added tevent_req_oom Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-12-11tevent: make use of talloc_get_type_abort() in tevent_queue.cStefan Metzmacher1-2/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2013-12-11tevent: add tevent_queue_wait_send/recv()Gregor Beck1-0/+52
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Gregor Beck <gbeck@sernet.de> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2011-08-09tevent: add tevent_queue_add_entry() and tevent_queue_add_optimize_empty()Stefan Metzmacher1-2/+55
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
2011-08-09tevent: splitout tevent_queue_add_internal() from tevent_queue_add()Stefan Metzmacher1-8/+26
metze
2011-08-09tevent: allow tevent_queue_add() to take a NULL trigger functionStefan Metzmacher1-0/+7
This way the caller can add a blocker to the queue. metze
2011-08-09tevent: add tevent_queue_running() functionStefan Metzmacher1-0/+5
metze
2009-03-17tevent: use an immediate event as trigger for tevent_queueStefan Metzmacher1-40/+59
metze
2009-02-26tevent: add tevent_queue infrastructureStefan Metzmacher1-0/+198
metze