mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-11 03:03:27 -04:00
13 lines
189 B
C
13 lines
189 B
C
#include <os_internal.h>
|
|
|
|
extern OSThread *__osRunningThread;
|
|
|
|
OSPri osGetThreadPri(OSThread *thread)
|
|
{
|
|
if (thread == NULL) {
|
|
thread = __osRunningThread;
|
|
}
|
|
|
|
return thread->priority;
|
|
}
|