Boost BGL thread safety

Posted by Budzoli on Stack Overflow See other posts from Stack Overflow or by Budzoli
Published on 2010-05-06T20:18:28Z Indexed on 2010/05/08 11:28 UTC
Read the original article Hit count: 241

Filed under:
|
|
|
|

Hi!

I'd like multiple threads to use the dijkstra_shortest_paths and astar_search functions of the BGL, and then read the property maps of the result vertices and edges.

I'm wondering wether I should use mutexes to ensure thread-safety.

So here are my questions:

1., Are the dijkstra_shortest_paths and astar_search functions of the Boost.Graph thread safe?

2., If I only try to read the property maps of the graph from multiple threads, do I need to worry about thread safety?

© Stack Overflow or respective owner

Related posts about c++

Related posts about boost