Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2023-01-12 17:50:03 +08:00
parent f626a8bc9e
commit 6fb22e2d8a
2 changed files with 3 additions and 6 deletions

View File

@ -21,11 +21,9 @@ void VecCopyVisitor::Next(const int type)
{
if (cur_ < data_.size()) {
cur_++;
if (type == NextType::THREAD) {
while (data_[cur_]->threadId_ != std::this_thread::get_id()) {
IMSA_HILOGD("differ threadId.");
cur_++;
}
while (type == NextType::THREAD && cur_ < data_.size() && data_[cur_]->threadId_ != std::this_thread::get_id() ) {
IMSA_HILOGD("differ threadId.");
cur_++;
}
}
}

View File

@ -16,7 +16,6 @@
#ifndef INTERFACE_KITS_VEC_COPY_VISITOR_H
#define INTERFACE_KITS_VEC_COPY_VISITOR_H
#include <climits>
#include <memory>
#include <vector>