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

Commit 09d1a798 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 am: 5b953f66

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



Change-Id: I7c8a1e95eccba05758f56f4fc9297035d13e637e
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 91d55db2 5b953f66
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;