diff options
author | 2020-05-27 04:29:42 +0000 | |
---|---|---|
committer | 2020-05-27 04:29:42 +0000 | |
commit | d1de4941b56c0f236c35c57ce1abe2dd03d9b8c0 (patch) | |
tree | 20aa522f3e1fd0be13be356cfc81aadfcf6bf7a2 /services/incremental/ServiceWrappers.h | |
parent | b9f48bd3c1b669e20aebf2fcd2cdb5f3cda24889 (diff) | |
parent | 1ad652187cedcdae7a435d2fc4d6f8c278595103 (diff) |
Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7d am: 1ad652187c
Change-Id: I6f53d1510f1f04d056bbae0b1d22354c3513f24c
Diffstat (limited to 'services/incremental/ServiceWrappers.h')
-rw-r--r-- | services/incremental/ServiceWrappers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/incremental/ServiceWrappers.h b/services/incremental/ServiceWrappers.h index abbf2f4c4424..a935ab99267e 100644 --- a/services/incremental/ServiceWrappers.h +++ b/services/incremental/ServiceWrappers.h @@ -69,6 +69,7 @@ public: using Control = incfs::Control; using FileId = incfs::FileId; using ErrorCode = incfs::ErrorCode; + using WaitResult = incfs::WaitResult; using ExistingMountCallback = std::function<void(std::string_view root, std::string_view backingDir, @@ -90,6 +91,9 @@ public: virtual ErrorCode unlink(const Control& control, std::string_view path) const = 0; virtual base::unique_fd openForSpecialOps(const Control& control, FileId id) const = 0; virtual ErrorCode writeBlocks(std::span<const incfs::DataBlock> blocks) const = 0; + virtual WaitResult waitForPendingReads( + const Control& control, std::chrono::milliseconds timeout, + std::vector<incfs::ReadInfo>* pendingReadsBuffer) const = 0; }; class AppOpsManagerWrapper { |