First version of caching in media streaming.

This commit is contained in:
John Preston
2019-02-25 21:26:08 +04:00
parent f133dd396c
commit 2208621050
15 changed files with 979 additions and 118 deletions
@@ -176,6 +176,14 @@ void Database::clearByTag(uint8 tag, FnMut<void(Error)> &&done) {
});
}
void Database::sync() {
auto semaphore = crl::semaphore();
_wrapped.with([&](Implementation &) {
semaphore.release();
});
semaphore.acquire();
}
Database::~Database() = default;
} // namespace Cache