File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ void *init_threads_and_enter_scheduler(worker_args *w_arg) {
320320#endif // ENABLE_WORKER_PINNING
321321
322322 for (int w = worker_start; w < n_threads; w++) {
323- new (& g->threads [w]) std::thread{scheduler_thread_proc,
323+ g->threads [w] = std::thread{scheduler_thread_proc,
324324 &g->worker_args [w]};
325325
326326#if ENABLE_WORKER_PINNING
@@ -353,7 +353,7 @@ static void threads_init(global_state *g) {
353353
354354 // Make sure we are supposed to create worker threads
355355 if (worker_start < (int )g->nworkers ) {
356- new (& g->threads [worker_start]) std::thread{
356+ g->threads [worker_start] = std::thread{
357357 init_threads_and_enter_scheduler,
358358 &g->worker_args [worker_start]
359359 };
You can’t perform that action at this time.
0 commit comments