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.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/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 dde376d..96804a8 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -196,8 +196,10 @@ struct codec_api { long* current_tick; long (*default_event_handler)(long event); long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); - int (*create_thread)(void (*function)(void), void* stack, int stack_size, const char *name); - void (*remove_thread)(int threadnum); + struct thread_entry* (*create_thread)(unsigned int core, void (*function)(void), + void* stack, int stack_size, const char *name + IF_PRIO(, int priority)); + void (*remove_thread)(struct thread_entry *thread); void (*reset_poweroff_timer)(void); #ifndef SIMULATOR int (*system_memory_guard)(int newmode); |