| 548 | } |
| 549 | |
| 550 | void VirtualZTransfer::process(const bool on_travel_end /*= false*/) |
| 551 | { |
| 552 | m_finished_job_cnt = 0; |
| 553 | |
| 554 | for (const auto& item : m_cur_gates_buffer) |
| 555 | { |
| 556 | //create thread process |
| 557 | //process_single_gate(item.first, on_travel_end); |
| 558 | m_thread_pool.append(std::bind(&VirtualZTransfer::process_single_gate, this, item.first, on_travel_end)); |
| 559 | } |
| 560 | |
| 561 | while (m_finished_job_cnt != m_cur_gates_buffer.size()) { std::this_thread::sleep_for(std::chrono::milliseconds(100)); } |
| 562 | |
| 563 | output_new_prog(on_travel_end); |
| 564 | } |
| 565 | |
| 566 | double VirtualZTransfer::get_single_angle_parameter(const pOptimizerNodeInfo& node) |
| 567 | { |