summaryrefslogtreecommitdiff
path: root/soh/src/libultra/os/getthreadid.c
blob: 792229c9bf959a2100e16fab33c88d4be262b7e2 (plain)
1
2
3
4
5
6
7
8
9
#include "global.h"

OSId osGetThreadId(OSThread* thread) {
    if (thread == NULL) {
        thread = __osRunningThread;
    }

    return thread->id;
}