Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-03-07 09:22:50


Johan Torp wrote:
...

> This means disconnect semantics are different for threaded and
> non-threaded policies. How will you make this clear to users? A
> typical signals n' slots use case is - at least for me:
>
> signal<void()> sig;
>
> class Foo{
> Foo() {
> con = sig.connect(bind(&Foo::some_func, this));
> }
>
> scoped_connection con;
>
> void some_func() {}
> };
>
> If the signal was thread-safe this could very well crash the user
> application.

It would also crash if the signal wasn't thread safe, so where's the
difference?


Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk