Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost & Pthreads
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-09-13 18:29:40


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net