lib/libvarnishapi/vsl_dispatch.c
static struct vtx *
vtx_add(struct VSLQ *vslq, unsigned vxid)
{
	struct vtx *vtx;

	AN(vslq);
	vtx = vtx_new(vslq);
	AN(vtx);
	vtx->key.vxid = vxid;
	AZ(VRBT_INSERT(vtx_tree, &vslq->tree, &vtx->key));
	VTAILQ_INSERT_TAIL(&vslq->incomplete, vtx, list_vtx);
	vslq->n_outstanding++;
	return (vtx);
}
/* Insert a new vtx into the managed list */
Insert a new vtx into the managed list
Insert a new vtx into the managed list
static struct vtx *
vtx_add(struct VSLQ *vslq, unsigned vxid)
{
	struct vtx *vtx;
	AN(vslq);
	vtx = vtx_new(vslq);
	AN(vtx);
	vtx->key.vxid = vxid;
	AZ(VRBT_INSERT(vtx_tree, &vslq->tree, &vtx->key));
	VTAILQ_INSERT_TAIL(&vslq->incomplete, vtx, list_vtx);
	vslq->n_outstanding++;
	return (vtx);
}
static struct vtx * vtx_add ( struct VSLQ * vslq , unsigned vxid ) { struct vtx * vtx ; AN ( vslq ) ; vtx = vtx_new ( vslq ) ; AN ( vtx ) ; vtx -> key . vxid = vxid ; AZ ( VRBT_INSERT ( vtx_tree , & vslq -> tree , & vtx -> key ) ) ; VTAILQ_INSERT_TAIL ( & vslq -> incomplete , vtx , list_vtx ) ; vslq -> n_outstanding ++ ; return ( vtx ) ; }
Insert a new vtx into the managed list
Insert a new vtx into the managed list