Lines Matching refs:dgraph_lock

221 static pthread_mutex_t dgraph_lock;  variable
349 (void) pthread_mutex_init(&dgraph_lock, &mutex_attrs); in graph_init()
365 assert(MUTEX_HELD(&dgraph_lock)); in vertex_get_by_name()
377 assert(MUTEX_HELD(&dgraph_lock)); in vertex_get_by_id()
397 assert(MUTEX_HELD(&dgraph_lock)); in graph_add_vertex()
427 assert(MUTEX_HELD(&dgraph_lock)); in graph_remove_vertex()
447 assert(MUTEX_HELD(&dgraph_lock)); in graph_add_edge()
500 assert(MUTEX_HELD(&dgraph_lock)); in remove_inst_vertex()
544 assert(MUTEX_HELD(&dgraph_lock)); in graph_walk_dependencies()
746 assert(MUTEX_HELD(&dgraph_lock)); in path_to_str()
793 assert(MUTEX_HELD(&dgraph_lock)); in graph_clogin_start()
931 assert(MUTEX_HELD(&dgraph_lock)); in graph_unset_restarter()
954 assert(MUTEX_HELD(&dgraph_lock)); in free_if_unrefed()
981 assert(MUTEX_HELD(&dgraph_lock)); in delete_depgroup()
1062 assert(MUTEX_HELD(&dgraph_lock)); in delete_instance_dependencies()
1090 assert(MUTEX_HELD(&dgraph_lock)); in graph_insert_vertex_unconfigured()
1185 assert(MUTEX_HELD(&dgraph_lock)); in graph_insert_dependency()
1911 assert(MUTEX_HELD(&dgraph_lock)); in graph_enable_by_vertex()
2043 assert(MUTEX_HELD(&dgraph_lock)); in graph_change_restarter()
2322 assert(MUTEX_HELD(&dgraph_lock)); in process_dependency_fmri()
2520 assert(MUTEX_HELD(&dgraph_lock)); in process_dependency_pg()
2674 assert(MUTEX_HELD(&dgraph_lock)); in set_dependencies()
2719 assert(MUTEX_HELD(&dgraph_lock)); in handle_cycle()
2737 assert(MUTEX_HELD(&dgraph_lock)); in vertex_ref()
2752 assert(MUTEX_HELD(&dgraph_lock)); in vertex_unref()
2999 assert(MUTEX_HELD(&dgraph_lock)); in refresh_vertex()
3133 assert(MUTEX_HELD(&dgraph_lock)); in configure_vertex()
3704 assert(MUTEX_HELD(&dgraph_lock)); in can_come_up()
3811 assert(MUTEX_HELD(&dgraph_lock)); in run_sulogin()
3822 MUTEX_UNLOCK(&dgraph_lock); in run_sulogin()
3826 MUTEX_LOCK(&dgraph_lock); in run_sulogin()
3857 MUTEX_LOCK(&dgraph_lock); in sulogin_thread()
3866 MUTEX_UNLOCK(&dgraph_lock); in sulogin_thread()
3907 MUTEX_LOCK(&dgraph_lock); in single_user_thread()
3909 MUTEX_UNLOCK(&dgraph_lock); in single_user_thread()
3962 MUTEX_LOCK(&dgraph_lock); in single_user_thread()
3972 MUTEX_UNLOCK(&dgraph_lock); in single_user_thread()
3987 MUTEX_UNLOCK(&dgraph_lock); in single_user_thread()
4025 MUTEX_LOCK(&dgraph_lock); in single_user_thread()
4027 MUTEX_UNLOCK(&dgraph_lock); in single_user_thread()
4044 MUTEX_LOCK(&dgraph_lock); in single_user_thread()
4054 MUTEX_UNLOCK(&dgraph_lock); in single_user_thread()
4097 MUTEX_LOCK(&dgraph_lock); in dgraph_add_instance()
4099 assert(MUTEX_HELD(&dgraph_lock)); in dgraph_add_instance()
4109 MUTEX_UNLOCK(&dgraph_lock); in dgraph_add_instance()
4119 MUTEX_UNLOCK(&dgraph_lock); in dgraph_add_instance()
4127 MUTEX_UNLOCK(&dgraph_lock); in dgraph_add_instance()
4201 MUTEX_LOCK(&dgraph_lock); in dgraph_update_general()
4206 MUTEX_UNLOCK(&dgraph_lock); in dgraph_update_general()
4218 MUTEX_UNLOCK(&dgraph_lock); in dgraph_update_general()
4267 MUTEX_UNLOCK(&dgraph_lock); in dgraph_update_general()
4293 assert(MUTEX_HELD(&dgraph_lock)); in dgraph_refresh_instance()
4356 assert(MUTEX_HELD(&dgraph_lock)); in insubtree_dependents_down()
4402 assert(MUTEX_HELD(&dgraph_lock)); in is_nonsubgraph_leaf()
4535 assert(MUTEX_HELD(&dgraph_lock)); in offline_subtree_leaves()
4581 assert(MUTEX_HELD(&dgraph_lock)); in disable_nonsubgraph_leaves()
4776 MUTEX_LOCK(&dgraph_lock); in dgraph_set_instance_state()
4780 MUTEX_UNLOCK(&dgraph_lock); in dgraph_set_instance_state()
4796 MUTEX_UNLOCK(&dgraph_lock); in dgraph_set_instance_state()
4812 MUTEX_UNLOCK(&dgraph_lock); in dgraph_set_instance_state()
4907 assert(MUTEX_HELD(&dgraph_lock)); in graph_transition_sulogin()
4971 MUTEX_LOCK(&dgraph_lock); in dgraph_remove_instance()
4975 MUTEX_UNLOCK(&dgraph_lock); in dgraph_remove_instance()
5038 MUTEX_UNLOCK(&dgraph_lock); in dgraph_remove_instance()
5050 assert(MUTEX_HELD(&dgraph_lock)); in target_milestone_as_runlevel()
5093 assert(MUTEX_HELD(&dgraph_lock)); in signal_init()
5144 assert(MUTEX_HELD(&dgraph_lock)); in graph_runlevel_changed()
5243 MUTEX_LOCK(&dgraph_lock); in dgraph_set_runlevel()
5379 MUTEX_UNLOCK(&dgraph_lock); in dgraph_set_runlevel()
5558 MUTEX_LOCK(&dgraph_lock); in dgraph_set_milestone()
5721 MUTEX_UNLOCK(&dgraph_lock); in dgraph_set_milestone()
6149 MUTEX_LOCK(&dgraph_lock); in graph_thread()
6153 MUTEX_UNLOCK(&dgraph_lock); in graph_thread()
6165 MUTEX_LOCK(&dgraph_lock); in graph_thread()
6178 MUTEX_UNLOCK(&dgraph_lock); in graph_thread()
6268 MUTEX_LOCK(&dgraph_lock); in process_actions()
6272 MUTEX_UNLOCK(&dgraph_lock); in process_actions()
6425 MUTEX_UNLOCK(&dgraph_lock); in process_actions()
6884 MUTEX_LOCK(&dgraph_lock); in graph_engine_start()
6886 err = pthread_cond_wait(&initial_milestone_cv, &dgraph_lock); in graph_engine_start()
6889 MUTEX_UNLOCK(&dgraph_lock); in graph_engine_start()