Lines Matching refs:entity
497 entity_destroy(repcache_entity_t *entity) in entity_destroy() argument
499 (void) pthread_mutex_lock(&entity->re_lock); in entity_destroy()
500 rc_node_clear(&entity->re_node, 0); in entity_destroy()
501 (void) pthread_mutex_unlock(&entity->re_lock); in entity_destroy()
503 uu_avl_node_fini(entity, &entity->re_link, entity_pool); in entity_destroy()
504 (void) pthread_mutex_destroy(&entity->re_lock); in entity_destroy()
505 rc_node_ptr_free_mem(&entity->re_node); in entity_destroy()
506 uu_free(entity); in entity_destroy()
512 repcache_entity_t *entity; in entity_remove() local
515 entity = uu_avl_find(cp->rc_entities, &id, NULL, NULL); in entity_remove()
516 if (entity != NULL) { in entity_remove()
517 add_log_ptr(get_log(), RC_PTR_TYPE_ENTITY, id, entity); in entity_remove()
519 uu_avl_remove(cp->rc_entities, entity); in entity_remove()
523 if (entity != NULL) in entity_remove()
524 entity_destroy(entity); in entity_remove()
1094 repcache_entity_t *entity; in entity_delete() local
1103 entity = entity_find(cp, entityid); in entity_delete()
1105 if (entity == NULL) in entity_delete()
1108 if (entity->re_changeid == rpr->rpr_changeid) { in entity_delete()
1111 result = rc_node_delete(&entity->re_node); in entity_delete()
1113 entity->re_changeid = rpr->rpr_changeid; in entity_delete()
1116 entity_release(entity); in entity_delete()