diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-02-14 11:27:45 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-02-14 11:27:45 +0000 |
commit | b15aa47c56d4f8c6e4bf83fef48e7a764dd119a2 (patch) | |
tree | 90e95627f56397cb74e021269a3cb65dd4c6ba2c /apps/tagcache.c | |
parent | 8f14357064d1b8734e2f4dbe2708ace26d5134d1 (diff) | |
download | rockbox-b15aa47c56d4f8c6e4bf83fef48e7a764dd119a2.tar.gz rockbox-b15aa47c56d4f8c6e4bf83fef48e7a764dd119a2.zip |
All kernel objects in code shared amongs targets (core, plugins, codecs) should be declared SHAREDBSS_ATTR as any core could potentially touch them even though they seem only to involve threads on one core. The exception is target code for particular CPUs where proper allocation is fixed. playlist.c was a little odd too-- use one mutex for the current playlist and a separate one for created playlists (still pondering the necessity of more than one).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29305 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index ae7199ffd6..ea7768139b 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -96,7 +96,7 @@ | |||
96 | 96 | ||
97 | #ifndef __PCTOOL__ | 97 | #ifndef __PCTOOL__ |
98 | /* Tag Cache thread. */ | 98 | /* Tag Cache thread. */ |
99 | static struct event_queue tagcache_queue; | 99 | static struct event_queue tagcache_queue SHAREDBSS_ATTR; |
100 | static long tagcache_stack[(DEFAULT_STACK_SIZE + 0x4000)/sizeof(long)]; | 100 | static long tagcache_stack[(DEFAULT_STACK_SIZE + 0x4000)/sizeof(long)]; |
101 | static const char tagcache_thread_name[] = "tagcache"; | 101 | static const char tagcache_thread_name[] = "tagcache"; |
102 | #endif | 102 | #endif |
@@ -159,7 +159,7 @@ struct tagcache_command_entry { | |||
159 | static struct tagcache_command_entry command_queue[TAGCACHE_COMMAND_QUEUE_LENGTH]; | 159 | static struct tagcache_command_entry command_queue[TAGCACHE_COMMAND_QUEUE_LENGTH]; |
160 | static volatile int command_queue_widx = 0; | 160 | static volatile int command_queue_widx = 0; |
161 | static volatile int command_queue_ridx = 0; | 161 | static volatile int command_queue_ridx = 0; |
162 | static struct mutex command_queue_mutex; | 162 | static struct mutex command_queue_mutex SHAREDBSS_ATTR; |
163 | #endif | 163 | #endif |
164 | 164 | ||
165 | /* Tag database structures. */ | 165 | /* Tag database structures. */ |