I suggest to try to use `mutable cv::Mutex IPPCalcHistInvoker::mutex_` here instead of multiple `CV_XADD`.