void rwmsg_method_release(rwmsg_endpoint_t *ep, rwmsg_method_t *meth) { bool zero=0; ck_pr_dec_32_zero(&meth->refct, &zero); if (zero) { rwmsg_garbage(&ep->gc, RWMSG_OBJTYPE_METHOD, meth, NULL, NULL); } }
void rwmsg_destination_release(rwmsg_destination_t *dt) { RW_ASSERT_TYPE(dt, rwmsg_destination_t); bool zero=0; ck_pr_dec_32_zero(&dt->refct, &zero); if (zero) { rwmsg_garbage(&dt->ep->gc, RWMSG_OBJTYPE_DESTINATION, dt, NULL, NULL); } }