|
@@ -58,7 +58,7 @@ static bool hextobuf(unsigned char *buf, const char *str, size_t len)
|
|
|
}
|
|
|
|
|
|
bool config_parse(Config &config, const std::string configstr,
|
|
|
- const std::string &myname)
|
|
|
+ const std::string &myname, threadid_t nthreads)
|
|
|
{
|
|
|
bool found_my_node = false;
|
|
|
bool found_params = false;
|
|
@@ -160,8 +160,8 @@ bool config_parse(Config &config, const std::string configstr,
|
|
|
apinodeconfigs[i].weight = config.nodes[i].weight;
|
|
|
apinodeconfigs[i].roles = config.nodes[i].roles;
|
|
|
}
|
|
|
- ret &= ecall_config_load(&apiparams, apinodeconfigs.data(),
|
|
|
- num_nodes, config.my_node_num);
|
|
|
+ ret &= ecall_config_load(nthreads, &apiparams,
|
|
|
+ apinodeconfigs.data(), num_nodes, config.my_node_num);
|
|
|
if (!ret) {
|
|
|
std::cerr << "Loading config into enclave failed\n";
|
|
|
}
|