forked from len0rd/rockbox
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
This commit is contained in:
parent
0b0f99b18e
commit
cc889e9d60
13 changed files with 67 additions and 55 deletions
|
|
@ -99,8 +99,7 @@ static void ata_lock_init(struct ata_lock *l)
|
|||
|
||||
static void ata_lock_lock(struct ata_lock *l)
|
||||
{
|
||||
struct thread_entry * const current =
|
||||
thread_id_entry(THREAD_ID_CURRENT);
|
||||
struct thread_entry * const current = thread_self_entry();
|
||||
|
||||
if (current == l->thread)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue