bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another multithreading bug (I think)


From: Richard Frith-Macdonald
Subject: Re: Another multithreading bug (I think)
Date: Wed, 6 Sep 2006 16:35:00 +0100


On 6 Sep 2006, at 14:31, Wim Oudshoorn wrote:

So it seems that an NSConnection is deallocated but still exists in the connection_table.

Looking at the NSConnection code, a connection is added to this table in the
-init... method, and removed in the -invalidate method.
<snip>

To me this looks not very thread safe.   So I see if garding this
with the _refGate works.   But because it is so tricky to reproduce
(any logging seems to make the bug disappear) it is hard to confirm
if the fix is enough.

Thanks ... well spotted.
I've modified the -release method to protect the check of the retain count using the connection table lock as you suggest.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]