Lines Matching refs:load_context
949 if (index->load_context == NULL) in check_for_suspend()
952 mutex_lock(&index->load_context->mutex); in check_for_suspend()
953 if (index->load_context->status != INDEX_SUSPENDING) { in check_for_suspend()
954 mutex_unlock(&index->load_context->mutex); in check_for_suspend()
959 index->load_context->status = INDEX_SUSPENDED; in check_for_suspend()
960 uds_broadcast_cond(&index->load_context->cond); in check_for_suspend()
962 while ((index->load_context->status != INDEX_OPENING) && in check_for_suspend()
963 (index->load_context->status != INDEX_FREEING)) in check_for_suspend()
964 uds_wait_cond(&index->load_context->cond, &index->load_context->mutex); in check_for_suspend()
966 closing = (index->load_context->status == INDEX_FREEING); in check_for_suspend()
967 mutex_unlock(&index->load_context->mutex); in check_for_suspend()
1152 struct index_load_context *load_context, index_callback_fn callback, in uds_make_index() argument
1206 index->load_context = load_context; in uds_make_index()
1255 if (index->load_context != NULL) { in uds_make_index()
1256 mutex_lock(&index->load_context->mutex); in uds_make_index()
1257 index->load_context->status = INDEX_READY; in uds_make_index()
1262 uds_broadcast_cond(&index->load_context->cond); in uds_make_index()
1263 mutex_unlock(&index->load_context->mutex); in uds_make_index()