discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSOperation


From: Sašo Kiselkov
Subject: Re: NSOperation
Date: Tue, 23 Nov 2010 08:36:45 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6

Concurrent operations run in separate threads, which don't automatically create autorelease pools (which are thread-local). You should enclose code which runs in a separate thread always in a new autorelease pool.

--
Saso

On 11/23/2010 12:44 AM, Scott Christley wrote:
Hello,

I'm trying to use NSOperationQueue to run a bunch of concurrent operations.  I used the bit of sample code from the Apple documentation for the basic structure, but the code prints some errors and hangs on GNUstep.  Does anybody know what the problem might be?

I get this from my program on GNUstep, it hangs after doing one operation.


2010-11-22 18:39:29.080 testOperation[3487] autorelease called without pool for object (0x199b060) of class GSKVOInfo in thread <NSThread: 0x191c4e0>
2010-11-22 18:39:29.082 testOperation[3487] autorelease called without pool for object (0x199b060) of class GSKVOInfo in thread <NSThread: 0x191c4e0>
starting
ending: 10000000001.000000


I'm using gnustep-startup-0.25.0 on 64-bit ubuntu.  Threads seem to be working just fine.

thanks
Scott

_______________________________________________ Discuss-gnustep mailing list Discuss-gnustep@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnustep


reply via email to

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