diff options
| author | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-16 16:18:11 +0000 |
|---|---|---|
| committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-16 16:18:11 +0000 |
| commit | a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f (patch) | |
| tree | a30695ed540bf32365d577f46398f712c7a494c4 /apps/tagcache.c | |
| parent | baf5494341cdd6cdb9590e21d429920b9bc4a2c6 (diff) | |
| download | rockbox-a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f.zip rockbox-a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f.tar.gz rockbox-a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f.tar.bz2 rockbox-a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f.tar.xz | |
New scheduler, with priorities for swcodec platforms. Frequent task
switching should be more efficient and tasks are stored in linked
lists to eliminate unnecessary task switching to improve performance.
Audio should no longer skip on swcodec targets caused by too CPU
hungry UI thread or background threads.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
| -rw-r--r-- | apps/tagcache.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 2ed80a8..f478598 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -54,6 +54,7 @@ */ #include <stdio.h> +#include "config.h" #include "thread.h" #include "kernel.h" #include "system.h" @@ -1062,7 +1063,6 @@ static bool get_next(struct tagcache_search *tcs) if (tagcache_is_numeric_tag(tcs->type)) { - logf("r:%d", tcs->position); snprintf(buf, sizeof(buf), "%d", tcs->position); tcs->result_seek = tcs->position; tcs->result = buf; @@ -3455,7 +3455,6 @@ static void tagcache_thread(void) sleep(HZ); stat.ready = check_all_headers(); - while (1) { queue_wait_w_tmo(&tagcache_queue, &ev, HZ); @@ -3503,6 +3502,7 @@ static void tagcache_thread(void) logf("tagcache check done"); + check_done = true; break ; @@ -3612,9 +3612,10 @@ void tagcache_init(void) current_serial = 0; write_lock = read_lock = 0; - queue_init(&tagcache_queue); + queue_init(&tagcache_queue, true); create_thread(tagcache_thread, tagcache_stack, - sizeof(tagcache_stack), tagcache_thread_name); + sizeof(tagcache_stack), tagcache_thread_name + IF_PRIO(, PRIORITY_BACKGROUND)); } bool tagcache_is_initialized(void) |