• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: terminating thread operation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >terminating thread operation (From: Roland Silver <email@hidden>)

  • Prev by Date: terminating thread operation
  • Next by Date: Re: terminating thread operation
  • Previous by thread: terminating thread operation
  • Next by thread: Re: terminating thread operation
  • Index(es):
    • Date
    • Thread