Hello, I want to build a bunch of different graphs at once,and it looks like the best way to do this is with pthreads. I need to be able to communicate information between the graphs (sadly in real time). Is Boost pthread friendly? I am just thinking of calling read_graphviz per thread, and when a vertex is waiting for data from another graph it just sits and waits. Communication should be easy and done by shared memory. I dont see any problems with this. I am just curious before I take this path that Boost is pthread friendly, or atleast in the way that I described? Thanks, EF
AMDG ef wrote:
I want to build a bunch of different graphs at once,and it looks like the best way to do this is with pthreads. I need to be able to communicate information between the graphs (sadly in real time). Is Boost pthread friendly? I am just thinking of calling read_graphviz per thread, and when a vertex is waiting for data from another graph it just sits and waits. Communication should be easy and done by shared memory.
I dont see any problems with this. I am just curious before I take this path that Boost is pthread friendly, or atleast in the way that I described?
It should be safe as long as you don't access any objects concurrently. In Christ, Steven Watanabe
participants (2)
-
ef
-
Steven Watanabe