From cc889e9d608e6b07b78541849b7e63b6fb3f6058 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 5 Mar 2011 17:48:06 +0000 Subject: Change the thread api a bit. * Remove THREAD_ID_CURRENT macro in favor of a thread_self() function, this allows thread functions to be simpler. * thread_self_entry() shortcut for kernel.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29521 a1c6a512-1295-4272-9138-f99709370657 --- firmware/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/usb.c') diff --git a/firmware/usb.c b/firmware/usb.c index a794e2ac8a..aada27dfd9 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -220,7 +220,7 @@ static inline void usb_slave_mode(bool on) { trigger_cpu_boost(); #ifdef HAVE_PRIORITY_SCHEDULING - thread_set_priority(THREAD_ID_CURRENT, PRIORITY_REALTIME); + thread_set_priority(thread_self(), PRIORITY_REALTIME); #endif disk_unmount_all(); usb_attach(); @@ -229,7 +229,7 @@ static inline void usb_slave_mode(bool on) { usb_enable(false); #ifdef HAVE_PRIORITY_SCHEDULING - thread_set_priority(THREAD_ID_CURRENT, PRIORITY_SYSTEM); + thread_set_priority(thread_self(), PRIORITY_SYSTEM); #endif /* Entered exclusive mode */ rc = disk_mount_all(); -- cgit v1.2.3