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

Commit 13757505 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

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



Change-Id: Id5114174279249aabf2cb05b5caafa66005c158d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ed672df1 15f4f0a1
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -734,7 +734,7 @@ void Snapuserd::ReadBlocks(const std::string& partition_name, const std::string&
    off_t offset = 0;
    off_t offset = 0;


    for (int i = 0; i < num_threads; i++) {
    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);
                         partition_name, offset, read_sz_per_thread);


        offset += read_sz_per_thread;
        offset += read_sz_per_thread;