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/storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/storage.c') diff --git a/firmware/storage.c b/firmware/storage.c index 867c68cf6b..69f28d94a8 100644 --- a/firmware/storage.c +++ b/firmware/storage.c @@ -71,14 +71,14 @@ static void storage_wait_turn(IF_MD_NONVOID(int drive)) #ifndef HAVE_MULTIDRIVE int drive=0; #endif - int my_prio = thread_get_io_priority(THREAD_ID_CURRENT); + int my_prio = thread_get_io_priority(thread_self()); int loops=my_prio; while(storage_should_wait(drive, my_prio) && (loops--)>=0) { sleep(STORAGE_DELAY_UNIT); } - storage_last_thread[drive] = thread_get_current(); + storage_last_thread[drive] = thread_self(); storage_last_activity[drive] = current_tick; } #endif -- cgit v1.2.3