ompi-svn-mirror / oshmem / request / request_dbg.h

/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
 * Copyright (c) 2012      Mellanox Technologies, Inc.
 *                         All rights reserved.
 * $COPYRIGHT$
 * 
 * Additional copyrights may follow
 * 
 * $HEADER$
 */
#ifndef OSHMEM_REQUEST_DBG_H
#define OSHMEM_REQUEST_DBG_H

/*
 * This file contains definitions used by both OSHMEM and debugger plugins.
 * For more information on why we do this see the Notice to developers 
 * comment at the top of the ompi_msgq_dll.c file.
 */

/**
 * Enum inidicating the type of the request
 */
typedef enum {
    OSHMEM_REQUEST_SPML,      /**< MPI point-to-point request */
    OSHMEM_REQUEST_IO,       /**< MPI-2 IO request */
    OSHMEM_REQUEST_GEN,      /**< MPI-2 generalized request */
    OSHMEM_REQUEST_NULL,     /**< NULL request */
    OSHMEM_REQUEST_NOOP,     /**< A request that does nothing (e.g., to PROC_NULL) */
    OSHMEM_REQUEST_MAX       /**< Maximum request type */
} oshmem_request_type_t;

/**
 * Enum indicating the state of the request
 */
typedef enum {
    /** Indicates that the request should not be progressed */
    OSHMEM_REQUEST_INVALID,
    /** A defined, but inactive request (i.e., it's valid, but should
        not be progressed) */
    OSHMEM_REQUEST_INACTIVE,
    /** A valid and progressing request */
    OSHMEM_REQUEST_ACTIVE,
    /** The request has been cancelled */
    OSHMEM_REQUEST_CANCELLED /* TODO: Not required */
} oshmem_request_state_t;

#endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.