Re: thread spinning ...
Re: thread spinning ...
- Subject: Re: thread spinning ...
- From: Chris Suter <email@hidden>
- Date: Wed, 6 Dec 2006 15:59:50 +1100
From looking at the CFRunLoop source it looks like you might be able
to see some info. by looking at the description i.e.:
NSLog ("%@", [NSRunLoop currentRunLoop]);
should print something out.
I haven't tried it so I might be wrong.
- Chris
On 06/12/2006, at 3:50 PM, Martin Redington wrote:
Ah. That might just be the other half of the jigsaw puzzle.
I just added some logging to see how quickly the loop was getting
executed, and was lucky enough to hit it, and it turns out was
running every few microseconds.
Ironically enough, until recently, I was adding a port to the
runloop manually, in the vain hope that I could remove it later,
and have the loop stop. I took it out because it looked like a
hack, didn't work, and I thought it might be part of the mach_port
leakage I posted about earlier.
That kind of implies that my thread might usually have some input
sources attached when it completes, but occasionally doesn't. Is
there any way to inspect the runloop and tell what the sources are?
That would be very useful, both in terms of understanding what's
going on under the hood, and maybe in detecting whether the right
things are attached?
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden