C++ (Qt)#pragma omp parallel forfor (int i = 0; i < N; ++i) DoCalcNormal(i);
C++ (Qt)void threadFunc( void ){ while (true) { int index = theAtomicCount++; if (index >= maxTask) return; CalcNormal(index); }}