From 7e12bba0d26a609ce16e981f0ebd4b8e73f59a8e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 22 Oct 2007 05:57:38 +0000 Subject: Phase in thread_wait when waiting for a thread to exit. Begin phasing out the spinlock object for general use; it will become a multicore-only object for core locking. Take care of plugins first. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15260 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 27ab2ce..9e08dda 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -112,12 +112,12 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 85 +#define PLUGIN_API_VERSION 86 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 85 +#define PLUGIN_MIN_API_VERSION 86 /* plugin return codes */ enum plugin_status { @@ -634,10 +634,12 @@ struct plugin_api { the API gets incompatible */ #if (CONFIG_CODEC == SWCODEC) - void (*spinlock_init)(struct spinlock *l IF_COP(, unsigned int flags)); - void (*spinlock_lock)(struct spinlock *l); - void (*spinlock_unlock)(struct spinlock *l); + void (*mutex_init)(struct mutex *m); + void (*mutex_lock)(struct mutex *m); + void (*mutex_unlock)(struct mutex *m); #endif + + void (*thread_wait)(struct thread_entry *thread); }; /* plugin header */ -- cgit v1.1