|
Boost Users : |
From: Timmo Stange (ts_at_[hidden])
Date: 2007-02-11 18:41:18
Frank Mori Hess wrote:
>>> However, you should be able to get concurrent signal invocation even
>>> with a single mutex once boost supports a recursive_read_write_mutex,
>>> right?
>> Yes, that would be possible at the expense of copying the combiner for
>> the invocation, which is acceptable and parameterizable through the
>> ThreadingModel anyway.
>
> I copy a shared_ptr to the combiner in the invocation, so a new full copy
> only gets made in set_combiner().
Yes, I saw that. You probably know that already, but the shared_ptr
reference counting is a relatively expensive operation. Copying a
last_value<> instance locally is a no-op on the other hand.
Regards
Timmo Stange
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net