Lines Matching defs:reqarg
182 typedef struct reqarg {
1607 reqarg_t *reqarg = event->ev_arg;
1614 LOCK(&reqarg->lock);
1616 reqarg->result = rev->result;
1617 dns_client_destroyreqtrans(&reqarg->trans);
1620 if (!reqarg->canceled) {
1621 UNLOCK(&reqarg->lock);
1624 isc_app_ctxsuspend(reqarg->actx);
1630 UNLOCK(&reqarg->lock);
1631 DESTROYLOCK(&reqarg->lock);
1632 isc_mem_put(reqarg->client->mctx, reqarg, sizeof(*reqarg));
1644 reqarg_t *reqarg;
1662 reqarg = isc_mem_get(client->mctx, sizeof(*reqarg));
1663 if (reqarg == NULL)
1666 result = isc_mutex_init(&reqarg->lock);
1668 isc_mem_put(client->mctx, reqarg, sizeof(*reqarg));
1672 reqarg->actx = actx;
1673 reqarg->client = client;
1674 reqarg->trans = NULL;
1675 reqarg->canceled = ISC_FALSE;
1681 reqarg, &reqarg->trans);
1683 DESTROYLOCK(&reqarg->lock);
1684 isc_mem_put(client->mctx, reqarg, sizeof(*reqarg));
1694 LOCK(&reqarg->lock);
1696 result = reqarg->result;
1697 if (reqarg->trans != NULL) {
1702 reqarg->canceled = ISC_TRUE;
1703 dns_client_cancelresolve(reqarg->trans);
1705 UNLOCK(&reqarg->lock);
1707 /* reqarg will be freed in the event handler. */
1709 UNLOCK(&reqarg->lock);
1711 DESTROYLOCK(&reqarg->lock);
1712 isc_mem_put(client->mctx, reqarg, sizeof(*reqarg));