« Return to Thread: [signals/threadsafe version] Atomic disconnects

Re: [signals/threadsafe version] Atomic disconnects

by Peter Dimov-5 :: Rate this Message:

Reply to Author | View in Thread

Johan Torp:

> Peter Dimov-5 wrote:
>>
>> It would also crash if the signal wasn't thread safe, so where's the
>> difference?
>>
>
> Why would it crash?

Because the thread-safe signal will only crash in your program when the
signal is being called in one thread and the class was destroyed in another.
Perhaps I'm missing something though. Your program wasn't complete.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: [signals/threadsafe version] Atomic disconnects