summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-10-22 05:57:38 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-10-22 05:57:38 +0000
commit7e12bba0d26a609ce16e981f0ebd4b8e73f59a8e (patch)
tree71673763db2a63da47e34f62e7513b2c8e987c87 /apps/plugin.c
parent344c41f644e9b95da55a66ea47d7b4afc6102e47 (diff)
downloadrockbox-7e12bba0d26a609ce16e981f0ebd4b8e73f59a8e.zip
rockbox-7e12bba0d26a609ce16e981f0ebd4b8e73f59a8e.tar.gz
rockbox-7e12bba0d26a609ce16e981f0ebd4b8e73f59a8e.tar.bz2
rockbox-7e12bba0d26a609ce16e981f0ebd4b8e73f59a8e.tar.xz
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
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index a8781dd..ff23a55 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -512,10 +512,12 @@ static const struct plugin_api rockbox_api = {
the API gets incompatible */
#if (CONFIG_CODEC == SWCODEC)
- spinlock_init,
- spinlock_lock,
- spinlock_unlock,
+ mutex_init,
+ mutex_lock,
+ mutex_unlock,
#endif
+
+ thread_wait,
};
int plugin_load(const char* plugin, void* parameter)