22AI_API
void*
AiThreadCreate(
unsigned int (*fn)(
void*),
void* data,
int priority);
27#define AI_MAX_THREADS 1024
32#define AI_PRIORITY_LOWEST 0x00
33#define AI_PRIORITY_LOW 0x01
34#define AI_PRIORITY_NORMAL 0x02
35#define AI_PRIORITY_HIGH 0x03
DLL export prefix for API functions (necessary for multi-platform development)
AI_API void AiThreadWait(void *thread)
Wait for a thread to finish.
AI_API AI_CONST void * AiThreadSelf()
Returns a handle for the current (calling) thread.
AI_API void * AiThreadCreate(unsigned int(*fn)(void *), void *data, int priority)
Creates a thread and returns a handler for the thread.
AI_API void AiThreadClose(void *thread)
Closes thread handle, to avoid resource leaks.