#include #include #include "visualdl/logic/im.h" #include "visualdl/storage/entry.h" #include "visualdl/storage/storage.h" #include "visualdl/storage/tablet.h" namespace visualdl { template void SimpleWriteSyncGuard::Start() { CHECK(data_); data_->parent()->meta.Inc(); } template void SimpleWriteSyncGuard::End() { CHECK(data_); if (data_->parent()->meta.ToSync()) { Sync(); } } template void SimpleWriteSyncGuard::Sync() { CHECK(data_); auto* storage = data_->parent(); storage->PersistToDisk(); } template class SimpleWriteSyncGuard; template class SimpleWriteSyncGuard; template class SimpleWriteSyncGuard; template class SimpleWriteSyncGuard>; template class SimpleWriteSyncGuard>; template class SimpleWriteSyncGuard>; template class SimpleWriteSyncGuard>; template class SimpleWriteSyncGuard>; template class SimpleWriteSyncGuard>; } // namespace visualdl