]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/device-ti-common-open.git/commit
audio: utils: Lessen number of errors in pipe providers
authorMisael Lopez Cruz <misael.lopez@ti.com>
Fri, 8 Nov 2013 07:18:42 +0000 (01:18 -0600)
committerMisael Lopez Cruz <misael.lopez@ti.com>
Mon, 11 Nov 2013 19:01:17 +0000 (13:01 -0600)
commit2c752c915aa52925cec575b26f8b221eb524c0ce
tree5643c4bf72feb77ff613f75d429b006ee73093be
parentd923350772d91d452f8f323d53365920399d635e
audio: utils: Lessen number of errors in pipe providers

Lessen the number of errors in pipe providers (PipeReader and
PipeWriter) by sleeping the equivalent time of the provider's
buffer size. That helps to keep on retrying to get buffers
from a provider that may be in a bad state (e.g. underrun)
and to give chance to other threads to run.

Change-Id: Ia643b681ed4ffca2958dd3808515c3bbc91acbad
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
audio/utils/src/MonoPipe.cpp