2004-10-12 15:50:01 +00:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OMPI_GEN_REQUEST_H
|
|
|
|
#define OMPI_GEN_REQUEST_H
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
#include "request/request.h"
|
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2004-10-22 16:06:05 +00:00
|
|
|
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(ompi_grequest_t);
|
2004-10-12 15:50:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
struct ompi_grequest_t {
|
|
|
|
ompi_request_t greq_base;
|
|
|
|
MPI_Grequest_query_function *greq_query;
|
|
|
|
MPI_Grequest_free_function *greq_free;
|
|
|
|
MPI_Grequest_cancel_function *greq_cancel;
|
|
|
|
void *greq_state;
|
|
|
|
};
|
|
|
|
typedef struct ompi_grequest_t ompi_grequest_t;
|
|
|
|
|
|
|
|
|
2004-10-20 14:56:52 +00:00
|
|
|
/*
|
|
|
|
* Start a generalized request.
|
|
|
|
*/
|
|
|
|
|
2004-10-22 16:06:05 +00:00
|
|
|
OMPI_DECLSPEC int ompi_grequest_start(
|
2004-10-12 15:50:01 +00:00
|
|
|
MPI_Grequest_query_function *gquery,
|
|
|
|
MPI_Grequest_free_function *gfree,
|
|
|
|
MPI_Grequest_cancel_function *gcancel,
|
|
|
|
void* gstate,
|
|
|
|
ompi_request_t** request);
|
|
|
|
|
2004-10-20 14:56:52 +00:00
|
|
|
/*
|
|
|
|
* Mark a generalized request as complete.
|
|
|
|
*/
|
2004-10-22 16:06:05 +00:00
|
|
|
OMPI_DECLSPEC int ompi_grequest_complete(ompi_grequest_t*);
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
2004-10-12 15:50:01 +00:00
|
|
|
|
|
|
|
#endif
|