Boost logo

Boost Users :

From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2007-02-25 12:16:06


On Sunday 25 February 2007 12:07 pm, Peter Dimov wrote:
>
> Now that I think about it, it can be implemented both ways. A slot that
> requires an explicit lock() before operator() would still need the
> .track. A slot that throws bad_weak_ptr from operator() would not. This
> brings us back to the problem of autodisconnects only happening on
> calls. :-/ It doesn't have to be either-or, though.
>

Yes, I was assuming an explicit lock(), and perhaps exposing the tracked
object list read-only for efficiency, which would allow multiple slots to
be locked at once without creating a separate container for each slot.

-- 
Frank



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