Signals & Slots
Sean Kelly
sean at f4.ca
Mon Nov 5 12:25:10 PST 2007
Lutger wrote:
> Lars Ivar Igesund wrote:
>
>> It would be nice to have some actual
>> evidence in this matter (either way, although I understand that complete
>> thread safety may be impossible to prove for an efficient solution).
>>
>
> The following hack resulted in a deadlock on my machine. I also found
> some access violations, this is perhaps a bug in sslot. A similar
> program for std.signals also gave deadlocks.
Weird, I'd expect std.signals to work. But then I just glanced at the
implementation so perhaps it has a bug or two. In theory, std.signals
could work, but the implementation would have to be very carefully done
(and lock-free as it is now).
Sean
More information about the Digitalmars-d
mailing list