1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-23 13:54:44 +00:00
oot/src/libultra_boot_O1/__osDequeueThread.c

17 lines
332 B
C
Raw Normal View History

2020-03-17 04:31:30 +00:00
#include <global.h>
2020-03-22 21:19:43 +00:00
void __osDequeueThread(OSThread** queue, OSThread* thread) {
register OSThread** a2;
register OSThread* a3;
2020-03-17 04:31:30 +00:00
a2 = queue;
a3 = *a2;
2020-03-22 21:19:43 +00:00
while (a3 != NULL) {
if (a3 == thread) {
2020-03-17 04:31:30 +00:00
*a2 = thread->next;
return;
}
a2 = &a3->next;
a3 = *a2;
}
2020-03-22 21:19:43 +00:00
}