RAII

parent bf643970
......@@ -257,9 +257,8 @@ void ImageManipulator::threaded_get_color(int const t_h)
reference_.at<uchar>(t_h, w + 2)};
auto pos = std::find(std::begin(colors_), std::end(colors_), temp);
if (pos == std::end(colors_)) {
colors_mutex_.lock();
std::lock_guard<std::mutex> lock(colors_mutex_);
colors_.push_back(std::move(temp));
colors_mutex_.unlock();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment