| 74 | } |
| 75 | |
| 76 | void |
| 77 | CacheInputStream::OnInputCacheAvailable(std::unique_lock<Mutex> &lock) noexcept |
| 78 | { |
| 79 | assert(lock.mutex() == &GetCacheItem().mutex); |
| 80 | |
| 81 | const ScopeUnlock unlock{lock}; |
| 82 | |
| 83 | const std::lock_guard protect{mutex}; |
| 84 | InvokeOnAvailable(); |
| 85 | } |