On 01/15/2011 04:54 PM, Pavel Sanda wrote:
Peter Kümmel wrote:
When a thread enters a function which another thread is busy on it hangs
in the lock, if it wouldn't wait the the chaos would become even worse.
The mutex only guaranties that one operation is finished before the next
starts.
yep, i know whot is mutex for. my question was about the graph scenario
problems.
I THINK that this will be OK, but please do not hold me to it.
Each time we search the graph, we start anew. The basic underlying
structure stays the same: what formats we have, and what converters we
have. The search involves decorating (labeling) the graph, and all of
that gets reset each time. So, as I said, I think it is OK.
That said, there are reasons we might want each Buffer to have its own
copy of the whole Graph structure, or perhaps to make one as it needs
it. If we see more problems, then we can go that way.
Richard