Skip to content

Commit

Permalink
Push some dummy work items onto both queues to give "deallocate
Browse files Browse the repository at this point in the history
on destruction" code a spin.
  • Loading branch information
sobomax committed May 23, 2020
1 parent 7e2462e commit bfe11fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rtpp_objck.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,11 @@ main(int argc, char **argv)
RTPP_OBJ_DECREF(targs.rsp);
CALL_SMETHOD(rtp, shutdown);
RTPP_OBJ_DECREF(rtp);
wi = rtpp_wi_malloc_udata((void **)&wi_data, tsize);
rtpp_queue_put_item(wi, targs.fqp);
rtpp_queue_destroy(targs.fqp);
wi = rtpp_wi_malloc_udata((void **)&wi_data, tsize);
rtpp_queue_put_item(wi, targs.bqp);
rtpp_queue_destroy(targs.bqp);

assert(tpl.cp == MLQ);
Expand Down

0 comments on commit bfe11fb

Please sign in to comment.