10 #ifndef K_API_THREAD_H
11 #define K_API_THREAD_H
71 #include <kApi/Threads/kThread.x.h>
kStatus kThread_Sleep(k64u duration)
Causes the current thread to yield control for the specified duration.
Represents a 64-bit unsigned integer.
Represents a void pointer.
kStatus kThread_Start(kThread thread, kThreadFx function, kPointer context)
Begins executing a thread using the specified callback function.
Abstract base class for memory allocator types.
kStatus kThread_Construct(kThread *thread, kAlloc allocator)
Constructs a kThread object.
Essential API declarations.
kStatus kThread_Join(kThread thread, k64u timeout, kStatus *exitCode)
Blocks until the thread exits, or until a timeout occurs.
Represents an enumeration of error codes.
#define kCall
kApi standard function calling convention.
Definition: kApiDef.h:17
kStatus(kCall * kThreadFx)(kPointer context)
Thread entry-point signature; used by kThread_Start.
Definition: kThread.h:18