Suspend/resume change the IO thread
Suspend/resume change the IO thread
- Subject: Suspend/resume change the IO thread
- From: Stéphane Letz <email@hidden>
- Date: Wed, 26 May 2010 16:35:54 +0200
Hi,
We need to call some code *once* in the IO thread (to setup up a pthread_key_t thread local stuff...). Until now we were using a second IO callback to be added and started (AudioDeviceAddIOProc and AudioDeviceStart) and that was just removing itself (AudioDeviceStop..;) after being called.
We have just seen that the IO thread identifier (the one got with pthread_self()) is changed when the machine is suspended/resumed. So our init code is not properly called anymore when the IO thread resume.
Is there any cleaner and more reliable way to call some code once in the IO thread and properly handle the suspend/resume case? (like some notification to be listened to) ?
Thanks.
Stephane Letz _______________________________________________
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