
19 Apr
2004
19 Apr
'04
2:43 p.m.
Christophe Meessen <christophe@meessen.net> writes:
First we where not very happy with boost threads because it requires a copy of the functor object. This does not allow to put non copyable object as member variables of the functor object. Knowing that mutex are none copyable objects, for good reasons, one understand that this API is far too constraining. I guess such design choices was driven by the requirement that the functor object lifetime is tighlty linked to the thread lifetime.
Is there some reason you can't embed a reference to a mutex? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com