| 1346 | } |
| 1347 | |
| 1348 | void |
| 1349 | Scan_Cache(swoc::file::path const ®ex_path) |
| 1350 | { |
| 1351 | Cache cache; |
| 1352 | std::vector<std::thread> threadPool; |
| 1353 | if ((err = cache.loadSpan(SpanFile))) { |
| 1354 | if (err.length()) { |
| 1355 | return; |
| 1356 | } |
| 1357 | cache.dumpSpans(Cache::SpanDumpDepth::SPAN); |
| 1358 | for (auto sp : cache._spans) { |
| 1359 | threadPool.emplace_back(scan_span, sp, regex_path); |
| 1360 | } |
| 1361 | for (auto &th : threadPool) { |
| 1362 | th.join(); |
| 1363 | } |
| 1364 | } |
| 1365 | } |
| 1366 | |
| 1367 | int |
| 1368 | main([[maybe_unused]] int argc, const char *argv[]) |