![]() |
Code Documentation 3.6
Social Network Visualizer
|
Per-thread state for the parallel SSSP source loop in DistanceEngine. More...


Go to the source code of this file.
Classes | |
| struct | ThreadLocalState |
Per-thread state for the parallel SSSP source loop in DistanceEngine.
During Phase 2 parallelisation (QtConcurrent::blockingMap over source vertices), each worker thread owns one ThreadLocalState. It holds:
Lifecycle: allocate(totalV) — called once per thread before the parallel loop (partialBC / partialSC are zeroed at allocation; pss is reset per source) Post-loop reduction reads totalDistanceSum, totalGeodesicsCount, maxDiameter, totalSumPC, totalSumSPC, partialBC[*], partialSC[*] and merges into graph state.