Re: terminating thread operation
Re: terminating thread operation
- Subject: Re: terminating thread operation
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 10 Apr 2008 18:42:24 -0700
On Thu, Apr 10, 2008 at 6:30 PM, Roland Silver <email@hidden> wrote:
>
>
> I have an app that runs two threads that I've created: a main thread, and
> one that the CoreAudio code runs in, including a callback. The CoreAudio
> framework stuff presumably runs in a third thread (but maybe not).
man sample, Instruments.app, Shark.app, etc. to explore what your
application is doing when running
> The main thread creates the second thread by invoking NSThread >
> detachNewThreadSelector. The second thread begins generating sound by
> calling CFRunLoopRun. In writing my code, I assumed that the second thread
> could be terminated by calling CFLoopStop(CFLoopGetCurrent()) from code
> executing within the second thread, but that doesn't work.
>
> What am I doing wrong? Am I confusing threads with runloops?
You sound like you are on the correct path... but hard to say what is
wrong without seeing the relevant code.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden