diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-11-20 03:44:25 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-11-20 03:44:25 +0000 |
| commit | fadbf0a6f72540b025987a2b3df3f9edd4e3e411 (patch) | |
| tree | 173f1780a981ad3e37d1df626e31af1b93077b95 /apps/playback.c | |
| parent | 31bf5cc8e5bf1e1c06e38829e29bf5da969d5c8e (diff) | |
| download | rockbox-fadbf0a6f72540b025987a2b3df3f9edd4e3e411.zip rockbox-fadbf0a6f72540b025987a2b3df3f9edd4e3e411.tar.gz rockbox-fadbf0a6f72540b025987a2b3df3f9edd4e3e411.tar.bz2 rockbox-fadbf0a6f72540b025987a2b3df3f9edd4e3e411.tar.xz | |
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/playback.c')
| -rw-r--r-- | apps/playback.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c index 5b9f568..782c613 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -848,6 +848,7 @@ static bool codec_pcmbuf_insert_callback( while ((dest = pcmbuf_request_buffer(&out_count)) == NULL) { + cancel_cpu_boost(); sleep(1); if (ci.seek_time || ci.new_track || ci.stop_codec) return true; @@ -1277,6 +1278,7 @@ static void codec_thread(void) while (1) { status = 0; + cancel_cpu_boost(); queue_wait(&codec_queue, &ev); switch (ev.id) { @@ -2388,6 +2390,7 @@ static void audio_thread(void) while (1) { + cancel_cpu_boost(); queue_wait_w_tmo(&audio_queue, &ev, HZ/2); switch (ev.id) { |