Re: threads
Re: threads
- Subject: Re: threads
- From: Roland Silver <email@hidden>
- Date: Sun, 6 Jan 2008 06:00:31 -0700
I'm using the Sinewave class from James McCartney's Sinewave demo as the back-end for making audible sounds produced by my AttonalComposer project. The problem is my incomplete understanding of how Sinewave works. The audio processing callback appIOProc generates a series of requests for data which are provided by code written by me. If data creation and consumption occur in different threads, then I probably need synchronization between them using a lock -- so I need to know if I'm dealing with two different threads or not. --RS Roland Silver ---------------------------------------------- On 2008Jan05, at 18:20, David Duncan wrote: On Jan 5, 2008, at 4:32 PM, Roland Silver wrote: 1. Does calling AudioDeviceStart start a new thread?
That depends on if the thread servicing that device in your process has been created or not, but thats more like an implementation detail... 2. Is program which uses appIOProc multithreaded?
In the strictest sense of the word, but then a lot of things spin off threads in your process. Most GUI apps are multithreaded by this type of implementation detail in the OS.
Is there a deeper reason why you need to know this? -- Reality is what, when you stop believing in it, doesn't go away. Failure is not an option. It is a privilege reserved for those who try.
David Duncan
|
_______________________________________________
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: | |
| >threads (From: Roland Silver <email@hidden>) |
| >Re: threads (From: David Duncan <email@hidden>) |