Search code examples
multithreadingconcurrencyboost-graph

BGL concurrent read accesses problem


I need to iterate over the vertices and edges of a BGL adjacency_list from several threads. Which would be an efficient way to do that, provided that the graph is large (mutex..)?

The BGL methods don't support reentrant calls?


Solution

  • BGL is currently not thread safe. Take a look at MTGL which provides a BGL like interface but is designed for massively multithreaded platforms.