23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 65 if (
rc == 0 && result !=
NULL)
125 char *confstr =
NULL;
143 #undef M0_TRACE_SUBSYSTEM
M0_INTERNAL void m0_chan_wait(struct m0_clink *link)
M0_INTERNAL int m0_conf_ut_cache_init(void)
static struct m0_mutex conf_ut_lock
M0_INTERNAL void m0_clink_init(struct m0_clink *link, m0_chan_cb_t cb)
M0_INTERNAL void m0_clink_del_lock(struct m0_clink *link)
int m0_thread_join(struct m0_thread *q)
M0_INTERNAL struct m0_conf_obj * m0_confc_ctx_result(struct m0_confc_ctx *ctx)
M0_INTERNAL int m0_file_read(const char *path, char **out)
M0_INTERNAL void m0_conf_ut_waiter_fini(struct m0_conf_ut_waiter *w)
static struct conf_ut_ast g_ast
M0_INTERNAL int m0_conf_ut_waiter_wait(struct m0_conf_ut_waiter *w, struct m0_conf_obj **result)
M0_INTERNAL int32_t m0_confc_ctx_error_lock(const struct m0_confc_ctx *ctx)
#define M0_THREAD_INIT(thread, TYPE, init, func, arg, namefmt,...)
M0_INTERNAL void m0_sm_group_fini(struct m0_sm_group *grp)
static void conf_ut_ast_thread(int _ M0_UNUSED)
M0_INTERNAL void m0_sm_group_unlock(struct m0_sm_group *grp)
struct m0_confc_ctx w_ctx
struct m0_conf_cache m0_conf_ut_cache
#define M0_AMB(obj, ptr, field)
M0_INTERNAL void m0_confc_ctx_fini(struct m0_confc_ctx *ctx)
M0_INTERNAL int m0_conf_ut_ast_thread_fini(void)
static struct m0_confc * confc
M0_INTERNAL void m0_sm_group_init(struct m0_sm_group *grp)
M0_INTERNAL bool m0_confc_ctx_is_completed(const struct m0_confc_ctx *ctx)
M0_INTERNAL void m0_conf_cache_init(struct m0_conf_cache *cache, struct m0_mutex *lock)
M0_INTERNAL int m0_confc_ctx_init(struct m0_confc_ctx *ctx, struct m0_confc *confc)
M0_INTERNAL int m0_conf_ut_cache_fini(void)
M0_INTERNAL bool m0_confc_ctx_is_completed_lock(const struct m0_confc_ctx *ctx)
M0_INTERNAL void m0_clink_signal(struct m0_clink *clink)
M0_INTERNAL void m0_mutex_init(struct m0_mutex *mutex)
static bool _filter(struct m0_clink *link)
struct m0_sm_group m0_conf_ut_grp
M0_INTERNAL int m0_conf_ut_ast_thread_init(void)
void m0_clink_add_lock(struct m0_chan *chan, struct m0_clink *link)
M0_INTERNAL void m0_conf_ut_cache_from_file(struct m0_conf_cache *cache, const char *path)
M0_INTERNAL void m0_conf_ut_waiter_init(struct m0_conf_ut_waiter *w, struct m0_confc *confc)
M0_INTERNAL int m0_conf_cache_from_string(struct m0_conf_cache *cache, const char *str)
M0_INTERNAL void m0_mutex_fini(struct m0_mutex *mutex)
M0_INTERNAL void m0_clink_fini(struct m0_clink *link)
M0_INTERNAL void m0_sm_group_lock(struct m0_sm_group *grp)
M0_INTERNAL void m0_conf_cache_clean(struct m0_conf_cache *cache, const struct m0_conf_obj_type *type)
M0_INTERNAL void m0_conf_cache_fini(struct m0_conf_cache *cache)
M0_INTERNAL void m0_sm_asts_run(struct m0_sm_group *grp)
M0_INTERNAL void m0_conf_cache_lock(struct m0_conf_cache *cache)
M0_INTERNAL void m0_conf_cache_unlock(struct m0_conf_cache *cache)