summaryrefslogtreecommitdiffstats
path: root/apps/voice_thread.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-11-20 03:44:25 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-11-20 03:44:25 +0000
commitfadbf0a6f72540b025987a2b3df3f9edd4e3e411 (patch)
tree173f1780a981ad3e37d1df626e31af1b93077b95 /apps/voice_thread.c
parent31bf5cc8e5bf1e1c06e38829e29bf5da969d5c8e (diff)
downloadrockbox-fadbf0a6f72540b025987a2b3df3f9edd4e3e411.tar.gz
rockbox-fadbf0a6f72540b025987a2b3df3f9edd4e3e411.tar.bz2
rockbox-fadbf0a6f72540b025987a2b3df3f9edd4e3e411.zip
Make threads responsible for explicit cancellation of their own boosted status. Sleeping and timeouts will no longer cancel it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15709 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r--apps/voice_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 9e7478651e..f7494f9587 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -249,7 +249,7 @@ static void voice_message(struct voice_thread_data *td)
}
/* Cancel boost */
- sleep(0);
+ cancel_cpu_boost();
td->state = TSTATE_STOPPED;
event_set_state(&voice_event, STATE_SIGNALED);