Merge "Fix the missing std" am: bb4c61aa34

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

Change-Id: I699fec00c6ab0057b39d0f0582b9ae6eb3574154
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-03-02 01:59:01 +00:00 committed by Automerger Merge Worker
commit 1e9592f022
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ void spawnThreads(FuzzedDataProvider* dataProvider) {
dataProvider->ConsumeRandomLengthString(MAX_NAME_SIZE).append(std::to_string(i));
std::thread th = std::thread(loop);
pthread_setname_np(th.native_handle(), threadName.c_str());
threads.push_back(move(th));
threads.push_back(std::move(th));
}
// Collect thread information

View file

@ -177,7 +177,7 @@ void spawnThreads(FuzzedDataProvider* dataProvider) {
uint8_t opCount = dataProvider->ConsumeIntegralInRange<uint8_t>(1, kMaxOperations);
std::vector<uint8_t> threadOperations = dataProvider->ConsumeBytes<uint8_t>(opCount);
std::thread tmpThread = std::thread(loop, threadOperations);
threads.push_back(move(tmpThread));
threads.push_back(std::move(tmpThread));
}
for (auto& th : threads) {