use THREAD_ID_CURRENT instead of thread_get_current()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25463 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2010-04-03 22:43:36 +00:00
parent 6cbbd1a756
commit f8811835e0

View file

@ -71,7 +71,7 @@ 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_get_current());
int my_prio = thread_get_io_priority(THREAD_ID_CURRENT);
int loops=my_prio;
while(storage_should_wait(drive, my_prio) && (loops--)>=0)
{