mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 09:09:59 -04:00
use isc_task_purgerange()
This commit is contained in:
parent
4f39360a7f
commit
a0850cd42d
1 changed files with 4 additions and 1 deletions
|
|
@ -171,7 +171,10 @@ main(int argc, char *argv[]) {
|
|||
event = isc_event_allocate(mctx, (void *)1, 1, my_callback, "4",
|
||||
sizeof *event);
|
||||
isc_task_send(t4, &event);
|
||||
isc_task_purge(t3, NULL, 0);
|
||||
isc_task_purgerange(t3,
|
||||
NULL,
|
||||
ISC_EVENTTYPE_FIRSTEVENT,
|
||||
ISC_EVENTTYPE_LASTEVENT);
|
||||
|
||||
isc_task_detach(&t1);
|
||||
isc_task_detach(&t2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue