diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-07-08 23:39:01 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-07-08 23:39:01 +0000 |
commit | d8cb05e31ea896e4b8272b2e931f5f927294cc34 (patch) | |
tree | 8583c96678eb1f6d8172815e66de5a46d3cd6020 /apps | |
parent | b2dbc2fe70af89ab3b583192dfd5e32b4e309cc4 (diff) | |
download | rockbox-d8cb05e31ea896e4b8272b2e931f5f927294cc34.tar.gz rockbox-d8cb05e31ea896e4b8272b2e931f5f927294cc34.zip |
Voice doesn't have to consume 100% CPU while waiting for an output buffer to be available. Use 'sleep(0)' instead of 'yield()' while polling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30132 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/voice_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 3318bbecb3..a3dc1e16ab 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c | |||
@@ -457,7 +457,7 @@ static void NORETURN_ATTR voice_thread(void) | |||
457 | if ((dest = (char *)voice_buf_get()) != NULL) | 457 | if ((dest = (char *)voice_buf_get()) != NULL) |
458 | break; | 458 | break; |
459 | 459 | ||
460 | yield(); | 460 | sleep(0); |
461 | } | 461 | } |
462 | 462 | ||
463 | voice_buf_commit(dsp_process(td.dsp, dest, td.src, td.count) | 463 | voice_buf_commit(dsp_process(td.dsp, dest, td.src, td.count) |