Boost logo

Boost Users :

From: Terry G (tjgolubi_at_[hidden])
Date: 2006-11-24 10:57:26


I wrote:
> Three things I noticed.
> I'm not a user of boost.thread, but I did get your example to work.
> Three things.
>
> (1) I think you want to pass a reference to p1 and c1, rather than copy
> them.
> (2) std:string is not thread-safe.
> (3) You need to delay to allow the other threads time to run.

Sorry, I hacked when I should have been thinking.
(3) thread.join() is much better than delay.

terry


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