Commit a2aad94c authored by limingbo's avatar limingbo

test

parent 27de9ea2
Pipeline #862 canceled with stages
...@@ -112,10 +112,10 @@ vector<boost::shared_ptr<Trajectory>> multiThreadInitTrajectory( ...@@ -112,10 +112,10 @@ vector<boost::shared_ptr<Trajectory>> multiThreadInitTrajectory(
vector<boost::shared_ptr<Trajectory>> trajectories; vector<boost::shared_ptr<Trajectory>> trajectories;
trajectories.resize(iePaths.size()); trajectories.resize(iePaths.size());
for(uint8_t thread_index = 0; thread_index < iePaths.size(); thread_index++){ for(uint8_t thread_index = 0; thread_index < iePaths.size(); thread_index++){
// thread_vec.emplace_back(ThreadPtr(new boost::thread(boost::bind(&initTrajectory,
thread_vec.emplace_back(ThreadPtr(new boost::thread(boost::bind(&initTrajectory, // iePaths[thread_index],
iePaths[thread_index], // trajectories[thread_index]))));
trajectories[thread_index])))); initTrajectory(iePaths[thread_index], trajectories[thread_index]);
} }
for(uint8_t thread_index = 0; thread_index < thread_vec.size(); thread_index++){ for(uint8_t thread_index = 0; thread_index < thread_vec.size(); thread_index++){
thread_vec[thread_index]->join(); thread_vec[thread_index]->join();
......
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