[core] Add pause and resume to database filesource implementation

This commit is contained in:
Alexander Shalamov
2020-01-24 20:19:58 +02:00
parent 429292fb98
commit 9ec2e2aff7
2 changed files with 13 additions and 0 deletions

View File

@@ -153,6 +153,9 @@ public:
ActorRef<DatabaseFileSourceThread> actor() const { return thread->actor(); }
void pause() { thread->pause(); }
void resume() { thread->resume(); }
private:
const std::unique_ptr<util::Thread<DatabaseFileSourceThread>> thread;
};
@@ -277,4 +280,12 @@ void DatabaseFileSource::setProperty(const std::string& key, const mapbox::base:
}
}
void DatabaseFileSource::pause() {
impl->pause();
}
void DatabaseFileSource::resume() {
impl->resume();
}
} // namespace mbgl