
14 Feb
2004
14 Feb
'04
11:24 p.m.
Andreas Huber wrote:
Yes, but the user still has to know/remember that (s)he has to call join() in the derived class destructor and start() in the constructor. I think the boost::thread design is much less error-prone here.
I don't think it's too much to expect a user to know how to properly use a class, provided proper use is documented, but this is really a matter of opinion. I mentioned the design as one that I favor, and I'll continue to use it whether it becomes a part of Boost or not :) Sean