MCPcopy Create free account
hub / github.com/apache/impala / NativeThreadStarter

Function NativeThreadStarter

be/src/benchmarks/thread-create-benchmark.cc:80–86  ·  view source on GitHub ↗

Runs N native threads, each executing 'f'

Source from the content-addressed store, hash-verified

78
79// Runs N native threads, each executing 'f'
80void 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'
89void ImpalaThreadStarter(int num_threads, const function<void ()>& f) {

Callers 1

TimeParallelExecutorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected