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.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/plugin.c') 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) -- cgit v1.1