bug-gnustep
[Top][All Lists]
Advanced

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

Re: NSThread


From: Enrico Sersale
Subject: Re: NSThread
Date: Wed, 03 Nov 2004 18:24:09 +0200

On 2004-11-03 15:44:26 +0200 Richard Frith-Macdonald <richard@brainstorm.co.uk> 
wrote:


On 3 Nov 2004, at 12:07, Enrico Sersale wrote:


After this change in -base

2004-09-27 Richard Frith-Macdonald <rfm@gnu.org>

        * Source/NSThread.m: Refrain from creating thread dictionary in an
        inactive thread ... we don't want to create new objects in a thread
        which is in the process of exiting.  Also, improve documentation.
<snip>
I'm encountering problems with threads that doesn't exit anymore.


<snip>

In -exitThread method there is only a line:
[NSThread exit];

but the thread doesn't exit and the cpu usage of the process grows to 99%.

The only thing I can think of is some problem with the code handling
notifications of thread exit.

I've changed the NSThread code to try harder to avoid any memory leaks
on thread exit rather than simply avoiding creating a new dictionary ...
please could you try it out.

Thank you. Now it works again.





reply via email to

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