Lines Matching defs:new_object
224 meta_object_t *new_object;
228 new_object = calloc(1, sizeof (meta_object_t));
229 if (new_object == NULL)
234 new_object->clones = calloc(num_slots, sizeof (slot_object_t *));
235 if (new_object->clones == NULL) {
236 free(new_object);
240 new_object->tried_create_clone = calloc(num_slots, sizeof (boolean_t));
241 if (new_object->tried_create_clone == NULL) {
242 free(new_object->clones);
243 free(new_object);
248 new_object->magic_marker = METASLOT_OBJECT_MAGIC;
249 (void) pthread_rwlock_init(&new_object->object_lock, NULL);
250 (void) pthread_rwlock_init(&new_object->attribute_lock, NULL);
251 (void) pthread_mutex_init(&new_object->clone_create_lock, NULL);
252 (void) pthread_mutex_init(&new_object->isClosingObject_lock, NULL);
253 new_object->creator_session = session;
255 *object = new_object;
412 meta_object_activate(meta_object_t *new_object)
425 if (new_object->isToken) {
429 list_lock = &new_object->creator_session->object_list_lock;
430 list_head = &new_object->creator_session->object_list_head;
435 INSERT_INTO_LIST(*list_head, new_object);
621 slot_object_t *new_object;
623 new_object = calloc(1, sizeof (slot_object_t));
624 if (new_object == NULL)
627 *object = new_object;