VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /etc/alternatives/mpi/openmpi/opal/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //etc/alternatives/mpi/openmpi/opal/util/info_subscriber.h
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
 * Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
 *                         University Research and Technology
 *                         Corporation.  All rights reserved.
 * Copyright (c) 2004-2007 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 (c) 2007-2012 Cisco Systems, Inc.  All rights reserved.
 * Copyright (c) 2009      Sun Microsystems, Inc.  All rights reserved.
 * Copyright (c) 2012-2015 Los Alamos National Security, LLC. All rights
 *                         reserved.
 * Copyright (c) 2017      IBM Corporation. All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */

#ifndef OMPI_INFOSUBSCRIBE_H
#define OMPI_INFOSUBSCRIBE_H

#include <string.h>

#include "opal/class/opal_list.h"
#include "opal/class/opal_pointer_array.h"
#include "opal/class/opal_hash_table.h"
#include "opal/threads/mutex.h"
#include "opal/util/info.h"

#include "opal/mca/base/mca_base_var_enum.h"


#define INFO_SUBSCRIBER_SIZE 5

struct opal_infosubscriber_t {
    opal_object_t	s_base;
    opal_hash_table_t 	s_subscriber_table;
    opal_info_t 	*s_info;
};
typedef struct opal_infosubscriber_t opal_infosubscriber_t;

OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_infosubscriber_t);

typedef char*(opal_key_interest_callback_t)(opal_infosubscriber_t*, char*, char*);

/**
 *   opal_infosubscribe_change_info - Make changes to a Comm/Win/File Info
 *
 *   @param type Comm/Win/File
 *   @param object corresponding Com/Win/File object
 *   @param old_info previous info setting
 *   @param new_info new info setting
 *
 *   @retval OPAL status
 *
 *   Notifies subscribers of info's that have gone away and new info settings
 */
int opal_infosubscribe_change_info(opal_infosubscriber_t*, opal_info_t *);


/**
 *   opal_infosubscribe_subscribe - Request to be updated about info changes to a Comm/Win/File Info
 *
 *   @param type Comm/Win/File of obj
 *   @param obj either a comm, win or file
 *   @param key info key being set
 *   @param initial_value default value (or NULL if none)
 *   @param callback callback to be called when key changes
 *
 *   @retval OPAL status
 *
 *   Notifies subscribers of info's that have gone away and new info settings
 *   Does not try to optimize settings that are the same between old and new
 *   info's.
 */
int opal_infosubscribe_subscribe(opal_infosubscriber_t*, char *, char *, opal_key_interest_callback_t);

#endif /* OMPI_INFO_H */

VaKeR 2022