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.h | |
| parent | 3d6436e530cac4c8fe200c31e35e47fed572345e (diff) | |
| download | rockbox-9bfa237869ec3a75776926de7ffd4e7a1c4e03b9.zip rockbox-9bfa237869ec3a75776926de7ffd4e7a1c4e03b9.tar.gz rockbox-9bfa237869ec3a75776926de7ffd4e7a1c4e03b9.tar.bz2 rockbox-9bfa237869ec3a75776926de7ffd4e7a1c4e03b9.tar.xz | |
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.h')
| -rw-r--r-- | apps/plugin.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 51421ff..0c2d050 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -110,7 +110,7 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 52 +#define PLUGIN_API_VERSION 53 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -600,6 +600,12 @@ struct plugin_api { bool (*detect_flashed_ramimage)(void); bool (*detect_flashed_romimage)(void); #endif + +#if NUM_CORES > 1 + void (*spinlock_init)(struct mutex *m); + void (*spinlock_lock)(struct mutex *m); + void (*spinlock_unlock)(struct mutex *m); +#endif }; /* plugin header */ |