summaryrefslogtreecommitdiff
path: root/lib/ultralib/src/os/getthreadid.c
blob: c2f39c9d51c89e1b566138361f55a5348f2e943c (plain)
1
2
3
4
5
6
7
8
9
10
#include "PR/os_internal.h"
#include "PRinternal/osint.h"

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

    return thread->id;
}