• 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
terminating thread operation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

terminating thread operation


  • Subject: terminating thread operation
  • From: Roland Silver <email@hidden>
  • Date: Thu, 10 Apr 2008 19:30:44 -0600

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).


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?


I thought that because the main function of my program is to generate sound, that the CoreAudio list is the right one to send this to. If that's not right, please accept my apologies and direct me to the proper list.


Roland Silver
email@hidden



 _______________________________________________
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

  • Follow-Ups:
    • Re: terminating thread operation
      • From: Jeff Moore <email@hidden>
    • Re: terminating thread operation
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Finding a users Music folder
  • Next by Date: Re: terminating thread operation
  • Previous by thread: Re: Offline Audio Units
  • Next by thread: Re: terminating thread operation
  • Index(es):
    • Date
    • Thread