terminating thread operation
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.
|
_______________________________________________
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