提交 cfec13be 编写于 作者: S superjom

fix version conflict

上级 d537276a
...@@ -62,7 +62,7 @@ PYBIND11_PLUGIN(core) { ...@@ -62,7 +62,7 @@ PYBIND11_PLUGIN(core) {
&vs::start_write_service, &vs::start_write_service,
"global information-maintainer object."); "global information-maintainer object.");
m.def("im", &vs::im); m.def("im", &vs::im);
m.def("stop_threads", &vs::StopThreads); m.def("stop_threads", &vs::stop_threads);
// interfaces for components // interfaces for components
#define ADD_SCALAR_TYPED_INTERFACE(T, name__) \ #define ADD_SCALAR_TYPED_INTERFACE(T, name__) \
......
...@@ -109,7 +109,7 @@ public: ...@@ -109,7 +109,7 @@ public:
IM::Global().storage().mutable_data()->clear_tablets(); IM::Global().storage().mutable_data()->clear_tablets();
} }
void PersistToDisk() const; void PersistToDisk() const { IM::Global().PersistToDisk(); }
}; };
namespace components { namespace components {
...@@ -142,11 +142,23 @@ private: ...@@ -142,11 +142,23 @@ private:
} // namespace components } // namespace components
static ImHelper &get_im() { static ImHelper &im() {
static ImHelper im; static ImHelper im;
return im; return im;
} }
static void start_read_service(const std::string &dir) {
IM::Global().SetPersistDest(dir);
IM::Global().MaintainRead();
}
static void start_write_service(const std::string &dir) {
IM::Global().SetPersistDest(dir);
IM::Global().MaintainWrite();
}
static void stop_threads() { cc::PeriodExector::Global().Quit(); }
} // namespace visualdl } // namespace visualdl
#endif // VISUALDL_BACKEND_LOGIC_SDK_H #endif // VISUALDL_BACKEND_LOGIC_SDK_H
...@@ -4,5 +4,5 @@ add_library(storage_proto ${PROTO_SRCS}) ...@@ -4,5 +4,5 @@ add_library(storage_proto ${PROTO_SRCS})
add_dependencies(storage_proto protobuf) add_dependencies(storage_proto protobuf)
## add storage as target ## add storage as target
add_library(storage storage.cc ${PROTO_SRCS} ${PROTO_HDRS}) add_library(storage storage.cc storage.h ${PROTO_SRCS} ${PROTO_HDRS})
add_dependencies(storage storage_proto) add_dependencies(storage storage_proto)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册