#include <omp.h>
Linker settings: other linker options: -fopenmp
A toy example:
#pragma omp parallel for
for (unsigned vel=0; vel<laser_points_all.size(); vel++)
{
#pragma omp critical
{
laser_in_camera.push_back(lasercam);
intersections.push_back(intersection);
iplane.push_back(std::pair<int,int>(vel,inter_plane));
}
}
No comments:
Post a Comment