void uct_cm_ep_pending_purge(uct_ep_h tl_ep, uct_pending_callback_t cb) { uct_cm_iface_t *iface = ucs_derived_of(tl_ep->iface, uct_cm_iface_t); uct_cm_ep_t *ep = ucs_derived_of(tl_ep, uct_cm_ep_t); uct_cm_pending_req_priv_t *priv; uct_pending_queue_purge(priv, &iface->notify_q, priv->ep == ep, cb); }
void uct_tcp_ep_pending_purge(uct_ep_h tl_ep, uct_pending_purge_callback_t cb, void *arg) { uct_tcp_ep_t *ep = ucs_derived_of(tl_ep, uct_tcp_ep_t); uct_pending_req_priv_t *priv; uct_pending_queue_purge(priv, &ep->pending_q, 1, cb, arg); }