diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-04-14 02:46:15 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-04-14 02:46:15 +0000 |
commit | 9bfa237869ec3a75776926de7ffd4e7a1c4e03b9 (patch) | |
tree | 31c8b5f5540cd8b9eee3d75ab71cf70590dc6ae4 /apps/plugin.c | |
parent | 3d6436e530cac4c8fe200c31e35e47fed572345e (diff) | |
download | rockbox-9bfa237869ec3a75776926de7ffd4e7a1c4e03b9.tar.gz rockbox-9bfa237869ec3a75776926de7ffd4e7a1c4e03b9.zip |
mpegplayer: Get it in better shape for dual core targets. Utilize the newly added cache stuff. Add a mutex to core shared buffer variables. I'd prefer to have a true spinlock there but this will do for the moment and protect the data. Nonetheless I can't seem to crash it on an e200 any longer and the display garbage is gone.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13153 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 1db0253c4e..a059a8d035 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -486,6 +486,12 @@ static const struct plugin_api rockbox_api = { | |||
486 | detect_flashed_ramimage, | 486 | detect_flashed_ramimage, |
487 | detect_flashed_romimage, | 487 | detect_flashed_romimage, |
488 | #endif | 488 | #endif |
489 | |||
490 | #if NUM_CORES > 1 | ||
491 | spinlock_init, | ||
492 | spinlock_lock, | ||
493 | spinlock_unlock, | ||
494 | #endif | ||
489 | }; | 495 | }; |
490 | 496 | ||
491 | int plugin_load(const char* plugin, void* parameter) | 497 | int plugin_load(const char* plugin, void* parameter) |