Runs N native threads, each executing 'f'
| 78 | |
| 79 | // Runs N native threads, each executing 'f' |
| 80 | void NativeThreadStarter(int num_threads, const function<void ()>& f) { |
| 81 | thread_group threads; |
| 82 | for (int i = 0; i < num_threads; ++i) { |
| 83 | threads.add_thread(new thread(f)); |
| 84 | } |
| 85 | threads.join_all(); |
| 86 | } |
| 87 | |
| 88 | // Runs N Impala Threads, each executing 'f' |
| 89 | void ImpalaThreadStarter(int num_threads, const function<void ()>& f) { |
no outgoing calls
no test coverage detected