5#include <kinc/backend/thread.h>
16 kinc_thread_impl_t impl;
37KINC_FUNC
void kinc_thread_init(kinc_thread_t *thread,
void (*func)(
void *param),
void *param);
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KINC_FUNC bool kinc_thread_try_to_destroy(kinc_thread_t *thread)
Attempts to destroy a thread.
KINC_FUNC void kinc_thread_wait_and_destroy(kinc_thread_t *thread)
Waits for the thread to complete execution and then destroys it.
KINC_FUNC void kinc_threads_init(void)
Initializes the threading system. This has to be called before calling any kinc_thread functions.
KINC_FUNC void kinc_threads_quit(void)
Shuts down the threading system.
KINC_FUNC void kinc_thread_set_name(const char *name)
Assigns a name to the current thread which will then show up in debuggers and profilers.
KINC_FUNC void kinc_thread_init(kinc_thread_t *thread, void(*func)(void *param), void *param)
Starts a thread via the provided function.
KINC_FUNC void kinc_thread_sleep(int milliseconds)
Puts the current thread to sleep.