C++ (Qt)#pragma omp parallel forfor (int i = 0; i < matr.size(); ++i) { CLayer * layer = CalcLayers(matr[i]); while (layer) { DoCalcLayer(layer); layer = layer->mNext; }}