📄 gpr_replica_api.h
字号:
/* -*- C -*- * * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ * *//** @file */#ifndef ORTE_GPR_REPLICA_API_H#define ORTE_GPR_REPLICA_API_H#include "orte_config.h"#include <time.h>#include "orte/class/orte_pointer_array.h"#include "opal/threads/mutex.h"#include "opal/threads/condition.h"#include "orte/mca/ns/ns_types.h"#include "orte/mca/gpr/replica/functional_layer/gpr_replica_fn.h"#include "orte/mca/gpr/replica/transition_layer/gpr_replica_tl.h"#include "orte/mca/gpr/replica/gpr_replica.h"#if defined(c_plusplus) || defined(__cplusplus)extern "C" {#endif/* * Implemented registry functions - see gpr.h for documentation *//* * Compound cmd functions */int orte_gpr_replica_begin_compound_cmd(void);int orte_gpr_replica_stop_compound_cmd(void);int orte_gpr_replica_exec_compound_cmd(void);/* * Arithmetic operations */int orte_gpr_replica_increment_value(orte_gpr_value_t *value);int orte_gpr_replica_decrement_value(orte_gpr_value_t *value);/* * Delete-index functions */int orte_gpr_replica_delete_segment(char *segment);int orte_gpr_replica_delete_segment_nb(char *segment, orte_gpr_notify_cb_fn_t cbfunc, void *user_tag);int orte_gpr_replica_delete_entries(orte_gpr_addr_mode_t mode, char *segment, char **tokens, char **keys);int orte_gpr_replica_delete_entries_nb( orte_gpr_addr_mode_t addr_mode, char *segment, char **tokens, char **keys, orte_gpr_notify_cb_fn_t cbfunc, void *user_tag); int orte_gpr_replica_index(char *segment, orte_std_cntr_t *cnt, char ***index);int orte_gpr_replica_index_nb(char *segment, orte_gpr_notify_cb_fn_t cbfunc, void *user_tag);/* * Cleanup functions */int orte_gpr_replica_cleanup_job(orte_jobid_t jobid);int orte_gpr_replica_cleanup_proc(orte_process_name_t *proc);/* * Put-get functions */int orte_gpr_replica_put(orte_std_cntr_t cnt, orte_gpr_value_t **values);int orte_gpr_replica_put_nb(orte_std_cntr_t cnt, orte_gpr_value_t **values, orte_gpr_notify_cb_fn_t cbfunc, void *user_tag); int orte_gpr_replica_get(orte_gpr_addr_mode_t addr_mode, char *segment, char **tokens, char **keys, orte_std_cntr_t *cnt, orte_gpr_value_t ***values);int orte_gpr_replica_get_conditional(orte_gpr_addr_mode_t addr_mode, char *segment, char **tokens, char **keys, orte_std_cntr_t num_conditions, orte_gpr_keyval_t **conditions, orte_std_cntr_t *cnt, orte_gpr_value_t ***values);int orte_gpr_replica_get_nb(orte_gpr_addr_mode_t addr_mode, char *segment, char **tokens, char **keys, orte_gpr_notify_cb_fn_t cbfunc, void *user_tag);/* * Subscribe functions */int orte_gpr_replica_subscribe(orte_std_cntr_t num_subs, orte_gpr_subscription_t **subscriptions, orte_std_cntr_t num_trigs, orte_gpr_trigger_t **trigs);int orte_gpr_replica_unsubscribe(orte_gpr_subscription_id_t sub_number);int orte_gpr_replica_cancel_trigger(orte_gpr_trigger_id_t trig);/* * Diagnostic functions */int orte_gpr_replica_dump_all(void);int orte_gpr_replica_dump_segments(char *segment);int orte_gpr_replica_dump_triggers(orte_gpr_trigger_id_t start);int orte_gpr_replica_dump_subscriptions(orte_gpr_subscription_id_t start);int orte_gpr_replica_dump_a_trigger( char *name, orte_gpr_trigger_id_t id);int orte_gpr_replica_dump_a_subscription( char *name, orte_gpr_subscription_id_t id);int orte_gpr_replica_dump_local_triggers(void);int orte_gpr_replica_dump_local_subscriptions(void);int orte_gpr_replica_dump_callbacks(void);int orte_gpr_replica_dump_notify_msg(orte_gpr_notify_message_t *msg);int orte_gpr_replica_dump_notify_data(orte_gpr_notify_data_t *data);int orte_gpr_replica_dump_value(orte_gpr_value_t *value);int orte_gpr_replica_dump_segment_size(char *segment);/* * General functions */int orte_gpr_replica_preallocate_segment(char *name, orte_std_cntr_t num_slots);int orte_gpr_replica_deliver_notify_msg(orte_gpr_notify_message_t *msg);#if defined(c_plusplus) || defined(__cplusplus)}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -