
23 Nov
2010
23 Nov
'10
12:12 a.m.
Hello. I have following small program (pseudocode): void Read() { do { // ... } while (...); } // Read() void Write() { do { // ... } while (...); } // Write() boost::thread thrd1(Read); boost::thread thrd2(Write); // I don't want the following thrd1.join(); thrd2.join(); No, I want to stop when either thread finishes something like a join_any(). Does that exist? greetings Chris } while (...); } // Write() boost::thread thrd1(Read); boost::thread thrd2(Write); // I don't want the following thrd1.join(); thrd2.join(); No, I want to stop when either thread finishes something like a conditional join. Does that exist? greetings Chris