summaryrefslogtreecommitdiff
path: root/soh/src/libultra/os/dequeuethread.c
blob: 14e9d346d80d899450f53e4dcf39195c779eb93b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "global.h"

void __osDequeueThread(OSThread** queue, OSThread* thread) {
    register OSThread** a2 = queue;
    register OSThread* a3 = *a2;

    while (a3 != NULL) {
        if (a3 == thread) {
            *a2 = thread->next;
            return;
        }
        a2 = &a3->next;
        a3 = *a2;
    }
}