author | Misael Lopez Cruz <misael.lopez@ti.com> | |
Fri, 8 Nov 2013 07:18:42 +0000 (01:18 -0600) | ||
committer | Misael Lopez Cruz <misael.lopez@ti.com> | |
Mon, 11 Nov 2013 19:01:17 +0000 (13:01 -0600) | ||
commit | 2c752c915aa52925cec575b26f8b221eb524c0ce | |
tree | 5643c4bf72feb77ff613f75d429b006ee73093be | tree | snapshot (tar.xz tar.gz zip) |
parent | d923350772d91d452f8f323d53365920399d635e | commit | diff |
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>
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 | diff | blob | history |