简体   繁体   中英

Boost graph : Are add_edge and remove_edge thread safe?

Are add_edge(src, dst, g) and remove_edge thread safe ? Can these operations be done concurrently with multi-threading parallelism ?

Thanks.

No.

Unless stated otherwise, no data structures/algorithms in the boost library are thread aware.

Also, these are generic free functions operating on the underlying graph type. So the thread-safety would depend on the underlying type.

In general, this makes add_edge and remove_edge thread neutral at best

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM