From 3b28ba2f76c519145795b1b330fda5851d8f38ca Mon Sep 17 00:00:00 2001 From: David Shah Date: Tue, 19 Nov 2019 12:28:44 +0000 Subject: router2: Debugging Signed-off-by: David Shah --- common/router2.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/router2.cc') diff --git a/common/router2.cc b/common/router2.cc index e1ed430c..1cb04f9f 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -791,10 +791,11 @@ struct Router2 bin = 3; tcs.at(bin).route_nets.push_back(ni); } + log_info("%d/%d nets not multi-threadable\n", int(tcs.at(N).route_nets.size()), int(route_queue.size())); // Multithreaded part of routing std::vector threads; for (int i = 0; i < N; i++) { - threads.emplace_back([&]() { router_thread(tcs.at(i)); }); + threads.emplace_back([this, &tcs, i]() { router_thread(tcs.at(i)); }); } for (int i = 0; i < N; i++) threads.at(i).join(); -- cgit v1.2.3