vector<thread> threads;
for (int i = 0; i < NUM_THREAD; i++)
{
threads.push_back(std::thread(func, (void*)param));
}
std::vector<std::thread> thread_pool;
void foo(int i) {
// do...
}
int main() {
thread_pool.push_back(std::thread(foo, 5));
return 0;
}