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:
parent
6cbbd1a756
commit
f8811835e0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue