callable_remote_procedure.cpp 652 Bytes
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1 2 3 4 5 6
/*
 * (C) 2017 The University of Chicago
 * 
 * See COPYRIGHT in top-level directory.
 */

7
#include <thallium/margo_exception.hpp>
Matthieu Dorier's avatar
Matthieu Dorier committed
8 9
#include <thallium/callable_remote_procedure.hpp>
#include <thallium/endpoint.hpp>
10
#include <thallium/engine.hpp>
Matthieu Dorier's avatar
Matthieu Dorier committed
11 12 13

namespace thallium {

14 15 16
callable_remote_procedure::callable_remote_procedure(
        engine& e, hg_id_t id, const endpoint& ep, bool ignore_resp, uint16_t provider_id) 
: m_engine(&e), m_ignore_response(ignore_resp), m_provider_id(provider_id) {
17
    m_ignore_response = ignore_resp;
18 19
    hg_return_t ret = margo_create(ep.m_engine->m_mid, ep.m_addr, id, &m_handle);
    MARGO_ASSERT(ret, margo_create);
Matthieu Dorier's avatar
Matthieu Dorier committed
20 21 22
}

}