|
Boost Users : |
From: Kirit Sælensminde (kirit.saelensminde_at_[hidden])
Date: 2007-11-23 04:57:30
Fabian Sturm wrote:
> I have a quite simple problem, but I still lack a nice implementation in
> C++ with boost.
>
> My problem is, that I have two threads A and B and thread A needs some
> information that B will calculate at runtime. Therefore I need some kind
> of synchronization.
You might find this example helpful:
http://www.boostcookbook.com/Recipe:/1234841
Note the condition and mutex, but there is also a bool used for
signalling the completion status. So the condition is only used to
signal a /change/ in status, but the status itself is the bool.
K
-- http://www.kirit.com/
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