
9 Feb
2007
9 Feb
'07
9:16 a.m.
Frank Mori Hess wrote:
combiner_type& combiner();
to
void set_combiner(const combiner_type &);
so the combiner can only be modified while holding the appropriate lock?
If you want to keep the interface somewhat more compatible, you could return a proxy which acquires the lock in its assignment operator. Making the other possible uses thread- safe is more complicated (signal.combiner().member()). Regards Timmo Stange