Lines Matching defs:TP
84 std::optional<BPThreadPool> TP;
88 TP.emplace(TheThreadPool);
96 auto BisectTask = [this, NodesRange, &TP]() {
97 bisect(NodesRange, /*RecDepth=*/0, /*RootBucket=*/1, /*Offset=*/0, TP);
99 if (TP) {
100 TP->async(std::move(BisectTask));
101 TP->wait();
116 std::optional<BPThreadPool> &TP) const {
150 auto LeftRecTask = [this, LeftNodes, RecDepth, LeftBucket, Offset, &TP]() {
151 bisect(LeftNodes, RecDepth + 1, LeftBucket, Offset, TP);
154 &TP]() {
155 bisect(RightNodes, RecDepth + 1, RightBucket, MidOffset, TP);
158 if (TP && RecDepth < Config.TaskSplitDepth && NumNodes >= 4) {
159 TP->async(std::move(LeftRecTask));
160 TP->async(std::move(RightRecTask));