Hello,
According to MCAPI standard (v2.015) the signature of the function mcapi_wait_any() is
mcapi_uint_t mcapi_wait_any(MCAPI_IN size_t number, MCAPI_IN mcapi_request_t* requests, MCAPI_OUT size_t* size, MCAPI_IN mcapi_timeout_t timeout, MCAPI_OUT mcapi_status_t* mcapi_status);
However two freely available implementations (MCA sample implementation and OpenMCAPI) uses another signature, namely
mcapi_int_t mcapi_wait_any(MCAPI_IN size_t number, MCAPI_IN mcapi_request_t **requests, MCAPI_OUT size_t *size, MCAPI_IN mcapi_timeout_t timeout, MCAPI_OUT mcapi_status_t *mcapi_status);
requesting array of pointers, which actually seems to be more adequate.
My question is what is right signature for this function? Is it an error in the standard or just a decision of implementation developers?
With the best wishes,
-- Anton Leontiev