support dynamic library loading in C++ worker (#13734)

This commit is contained in:
SongGuyang
2021-02-01 19:24:33 +08:00
committed by GitHub
parent 1d2ab018b0
commit 361e5f0bef
15 changed files with 144 additions and 243 deletions
+7
View File
@@ -34,6 +34,13 @@ class RayConfig {
static std::shared_ptr<RayConfig> GetInstance();
void SetRedisAddress(const std::string address) {
auto pos = address.find(':');
RAY_CHECK(pos != std::string::npos);
redis_ip = address.substr(0, pos);
redis_port = std::stoi(address.substr(pos + 1, address.length()));
}
private:
static std::shared_ptr<RayConfig> config_;
};
@@ -1,9 +0,0 @@
#pragma once
namespace ray {
namespace api {
int default_worker_main(int argc, char **argv);
} // namespace api
} // namespace ray