Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b953f66 authored by Ryan Prichard's avatar Ryan Prichard Committed by Automerger Merge Worker
Browse files

Merge "Explicitly ignore the result of std::async" into main am: 60dbdaa3...

Merge "Explicitly ignore the result of std::async" into main am: 60dbdaa3 am: 488f4b5a am: 15f4f0a1 am: 13757505

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2673359



Change-Id: I61acb8a7da9be1c3e9cf4152e9fb51a1996f8b70
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 17342905 13757505
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -734,7 +734,7 @@ 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,
        (void)std::async(std::launch::async, &Snapuserd::ReadBlocksToCache, this, dm_block_device,
                         partition_name, offset, read_sz_per_thread);

        offset += read_sz_per_thread;