![Prabhanjan Kambadur](/assets/img/avatar_default.png)
1. header file and source file protections using #ifdef WIN32 2. new files and directories to support windows functionality 3. appropritate linkage symbols added (OMPI_DECLSPEC) for windows 4. some functions are unimplemented on the windows side. this is mostly because there might not be need to implement it in windows land. eg., forking a daemon off 5. Introduced locking mechanisms for windows This commit was SVN r3286.
47 строки
946 B
C
47 строки
946 B
C
/*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef OMPI_GEN_REQUEST_H
|
|
#define OMPI_GEN_REQUEST_H
|
|
|
|
#include "ompi_config.h"
|
|
#include "request/request.h"
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(ompi_grequest_t);
|
|
|
|
|
|
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;
|
|
|
|
|
|
/*
|
|
* Start a generalized request.
|
|
*/
|
|
|
|
OMPI_DECLSPEC int ompi_grequest_start(
|
|
MPI_Grequest_query_function *gquery,
|
|
MPI_Grequest_free_function *gfree,
|
|
MPI_Grequest_cancel_function *gcancel,
|
|
void* gstate,
|
|
ompi_request_t** request);
|
|
|
|
/*
|
|
* Mark a generalized request as complete.
|
|
*/
|
|
OMPI_DECLSPEC int ompi_grequest_complete(ompi_grequest_t*);
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|