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/codecs.h | |
parent | baf5494341cdd6cdb9590e21d429920b9bc4a2c6 (diff) | |
download | rockbox-a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f.tar.gz rockbox-a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f.zip |
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/codecs.h')
-rw-r--r-- | apps/codecs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/codecs.h b/apps/codecs.h index dde376d73c..96804a889b 100644 --- a/apps/codecs.h +++ b/apps/codecs.h | |||
@@ -196,8 +196,10 @@ struct codec_api { | |||
196 | long* current_tick; | 196 | long* current_tick; |
197 | long (*default_event_handler)(long event); | 197 | long (*default_event_handler)(long event); |
198 | long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); | 198 | long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); |
199 | int (*create_thread)(void (*function)(void), void* stack, int stack_size, const char *name); | 199 | struct thread_entry* (*create_thread)(unsigned int core, void (*function)(void), |
200 | void (*remove_thread)(int threadnum); | 200 | void* stack, int stack_size, const char *name |
201 | IF_PRIO(, int priority)); | ||
202 | void (*remove_thread)(struct thread_entry *thread); | ||
201 | void (*reset_poweroff_timer)(void); | 203 | void (*reset_poweroff_timer)(void); |
202 | #ifndef SIMULATOR | 204 | #ifndef SIMULATOR |
203 | int (*system_memory_guard)(int newmode); | 205 | int (*system_memory_guard)(int newmode); |