Hi.

There isn't any way to know if there are any CQEs in the CQ.
Destroying a CQ which has completions should create seg fault (unless you have another thread that try to use this CQ ...)

Dotan

Ganesh Sadasivan wrote:
Hi,

   Is there any way to figure out that a cq does not have any pending
completion entries and thus
   is safe to call ibv_destroy_cq. Or is it ok to call destroy
regardless of whether there are completion
   entries? I am seeing a seg fault in ibv_poll_cq if I adopt the
latter approach.

Thanks
Ganesh
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general


_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to