1#ifndef KORE_THREADS_THREAD_HEADER
2#define KORE_THREADS_THREAD_HEADER
6#include <kore3/backend/thread.h>
17 kore_thread_impl impl;
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KORE_FUNC void kore_thread_init(kore_thread *thread, void(*func)(void *param), void *param)
Starts a thread via the provided function.
KORE_FUNC void kore_thread_wait_and_destroy(kore_thread *thread)
Waits for the thread to complete execution and then destroys it.
KORE_FUNC bool kore_thread_try_to_destroy(kore_thread *thread)
Attempts to destroy a thread.
KORE_FUNC void kore_thread_sleep(int milliseconds)
Puts the current thread to sleep.
KORE_FUNC void kore_thread_set_name(const char *name)
Assigns a name to the current thread which will then show up in debuggers and profilers.