Commit a0850cd4 authored by Bob Halley's avatar Bob Halley
Browse files

use isc_task_purgerange()

parent 4f39360a
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment