/** Release the root port for other threads. * * @NEW_1_12_7 */ int su_root_release(su_root_t *root) { if (root == NULL || root->sur_port == NULL) return (void)(errno = EFAULT), -1; return su_port_release(root->sur_port); }
/** @internal Deinit a base implementation of port. */ void su_base_port_deinit(su_port_t *self) { if (su_port_own_thread(self)) su_port_release(self); }