2007-07-26 02:28:04 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2007 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2007-07-21 01:36:11 +04:00
|
|
|
#ifndef __VPROTOCOL_PESSIMIST_WAIT_H__
|
|
|
|
#define __VPROTOCOL_PESSIMIST_WAIT_H__
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
2007-12-07 11:17:30 +03:00
|
|
|
#include "ompi/request/request.h"
|
2007-07-21 01:36:11 +04:00
|
|
|
|
2007-12-12 22:13:23 +03:00
|
|
|
BEGIN_C_DECLS
|
|
|
|
|
2007-07-21 01:36:11 +04:00
|
|
|
#define VPROTOCOL_PESSIMIST_WAIT(req, status, rc) \
|
|
|
|
((rc) = ompi_request_wait(req, status))
|
|
|
|
|
2007-12-07 11:17:30 +03:00
|
|
|
int mca_vprotocol_pessimist_test(ompi_request_t ** rptr, int *completed,
|
|
|
|
ompi_status_public_t * status);
|
|
|
|
|
|
|
|
int mca_vprotocol_pessimist_test_all(size_t count, ompi_request_t ** requests,
|
|
|
|
int *completed,
|
|
|
|
ompi_status_public_t * statuses);
|
|
|
|
|
|
|
|
int mca_vprotocol_pessimist_test_any(size_t count, ompi_request_t ** requests,
|
|
|
|
int *index, int *completed,
|
|
|
|
ompi_status_public_t * status);
|
|
|
|
|
|
|
|
int mca_vprotocol_pessimist_test_some(size_t count, ompi_request_t ** requests,
|
|
|
|
int * outcount, int * indices,
|
|
|
|
ompi_status_public_t * statuses);
|
|
|
|
|
|
|
|
int mca_vprotocol_pessimist_wait_any(size_t count, ompi_request_t ** requests,
|
|
|
|
int *index, ompi_status_public_t * status);
|
|
|
|
|
|
|
|
int mca_vprotocol_pessimist_wait_some(size_t count, ompi_request_t ** requests,
|
|
|
|
int *outcount, int *indexes,
|
|
|
|
ompi_status_public_t * statuses);
|
|
|
|
|
2007-12-12 22:13:23 +03:00
|
|
|
END_C_DECLS
|
|
|
|
|
2007-12-07 11:17:30 +03:00
|
|
|
#endif /* __VPROTOCOL_PESSIMIST_WAIT_H__ */
|