File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 71
71
"variant" : " cpp" ,
72
72
"algorithm" : " cpp" ,
73
73
"*.inc" : " cpp"
74
- }
74
+ },
75
+ "cmake.sourceDirectory" : " /Users/akashlevy/Documents/preqorsor/third_party/yosys/abc"
75
76
}
Original file line number Diff line number Diff line change @@ -2636,14 +2636,16 @@ struct AbcPass : public Pass {
2636
2636
ConcurrentQueue<std::unique_ptr<AbcModuleState>> work_queue (num_worker_threads);
2637
2637
ConcurrentQueue<std::unique_ptr<AbcModuleState>> work_finished_queue;
2638
2638
ConcurrentStack<AbcProcess> process_pool;
2639
- ThreadPool worker_threads (num_worker_threads, [&](int ){
2639
+ if (num_worker_threads > 0 ) {
2640
+ ThreadPool worker_threads (num_worker_threads, [&](int ){
2640
2641
while (std::optional<std::unique_ptr<AbcModuleState>> work =
2641
2642
work_queue.pop_front ()) {
2642
2643
// Only the `run_abc` component is safe to touch here!
2643
2644
(*work)->run_abc .run (process_pool);
2644
2645
work_finished_queue.push_back (std::move (*work));
2645
2646
}
2646
2647
});
2648
+ }
2647
2649
int state_index = 0 ;
2648
2650
int next_state_index_to_process = 0 ;
2649
2651
std::vector<std::unique_ptr<AbcModuleState>> work_finished_by_index;
You can’t perform that action at this time.
0 commit comments