Merge "Explicitly ignore the result of std::async" into main am: 60dbdaa3fa
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2673359 Change-Id: I098989364b5d481d84ae8365ea52bf082bc8e7f3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
488f4b5a39
1 changed files with 2 additions and 2 deletions
|
@ -734,8 +734,8 @@ void Snapuserd::ReadBlocks(const std::string& partition_name, const std::string&
|
|||
off_t offset = 0;
|
||||
|
||||
for (int i = 0; i < num_threads; i++) {
|
||||
std::async(std::launch::async, &Snapuserd::ReadBlocksToCache, this, dm_block_device,
|
||||
partition_name, offset, read_sz_per_thread);
|
||||
(void)std::async(std::launch::async, &Snapuserd::ReadBlocksToCache, this, dm_block_device,
|
||||
partition_name, offset, read_sz_per_thread);
|
||||
|
||||
offset += read_sz_per_thread;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue