mirror of
https://github.com/zeldaret/oot.git
synced 2024-09-23 05:45:03 +00:00
19 lines
343 B
C
19 lines
343 B
C
|
#include <global.h>
|
||
|
|
||
|
void __osDequeueThread(OSThread **queue, OSThread *thread)
|
||
|
{
|
||
|
register OSThread **a2;
|
||
|
register OSThread *a3;
|
||
|
a2 = queue;
|
||
|
a3 = *a2;
|
||
|
while (a3 != NULL)
|
||
|
{
|
||
|
if (a3 == thread)
|
||
|
{
|
||
|
*a2 = thread->next;
|
||
|
return;
|
||
|
}
|
||
|
a2 = &a3->next;
|
||
|
a3 = *a2;
|
||
|
}
|
||
|
}
|