| 950 | | } else { |
| 951 | | std::size_t i = 0; |
| 952 | | ULONG participators = m_num_threads; |
| 953 | | for (; i < participators - 1; i++) { |
| 954 | | boost::threadpool::schedule( |
| 955 | | *m_threadpool, |
| 956 | | boost::bind(&PtpanTree::design_probes, this, |
| 957 | | boost::ref(dq), boost::ref(dqh), i, |
| 958 | | participators)); |
| 959 | | } |
| 960 | | design_probes(dq, dqh, i, participators); // main thread can do some work as well! |
| 961 | | m_threadpool->wait(); |
| 962 | | } |
| | 950 | // } else { |
| | 951 | // std::size_t i = 0; |
| | 952 | // ULONG participators = m_num_threads; |
| | 953 | // for (; i < participators - 1; i++) { |
| | 954 | // boost::threadpool::schedule( |
| | 955 | // *m_threadpool, |
| | 956 | // boost::bind(&PtpanTree::design_probes, this, |
| | 957 | // boost::ref(dq), boost::ref(dqh), i, |
| | 958 | // participators)); |
| | 959 | // } |
| | 960 | // design_probes(dq, dqh, i, participators); // main thread can do some work as well! |
| | 961 | // m_threadpool->wait(); |
| | 962 | // } |
| 4487 | | } else { |
| 4488 | | std::size_t i = 0; |
| 4489 | | ULONG participators = m_num_threads; |
| 4490 | | for (; i < participators - 1; i++) { |
| 4491 | | boost::threadpool::schedule( |
| 4492 | | *m_threadpool, |
| 4493 | | boost::bind(&PtpanTree::ss_window_search, this, |
| 4494 | | boost::ref(ssq), boost::ref(ssqh), i, |
| 4495 | | participators)); |
| 4496 | | } |
| 4497 | | ss_window_search(ssq, ssqh, i, participators); // main thread can do some work as well! |
| 4498 | | m_threadpool->wait(); |
| 4499 | | } |
| | 4487 | // } else { |
| | 4488 | // std::size_t i = 0; |
| | 4489 | // ULONG participators = m_num_threads; |
| | 4490 | // for (; i < participators - 1; i++) { |
| | 4491 | // boost::threadpool::schedule( |
| | 4492 | // *m_threadpool, |
| | 4493 | // boost::bind(&PtpanTree::ss_window_search, this, |
| | 4494 | // boost::ref(ssq), boost::ref(ssqh), i, |
| | 4495 | // participators)); |
| | 4496 | // } |
| | 4497 | // ss_window_search(ssq, ssqh, i, participators); // main thread can do some work as well! |
| | 4498 | // m_threadpool->wait(); |
| | 4499 | // } |