23 Nov
2007
23 Nov
'07
9:57 a.m.
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/