Kohi Game Engine
threadpool.h
Go to the documentation of this file.
1 #ifndef _THREADPOOL_H_
2 #define _THREADPOOL_H_
3 
4 #include "defines.h"
5 
6 struct worker_thread;
7 
8 typedef struct threadpool {
12 
13 KAPI b8 threadpool_create(u32 thread_count, threadpool* out_pool);
14 
16 
18 
19 #endif
This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:205
unsigned int u32
Unsigned 32-bit integer.
Definition: defines.h:25
_Bool b8
8-bit boolean type
Definition: defines.h:58
Definition: threadpool.h:8
struct worker_thread * threads
Definition: threadpool.h:10
u32 thread_count
Definition: threadpool.h:9
Definition: worker_thread.h:9
struct threadpool threadpool
KAPI b8 threadpool_create(u32 thread_count, threadpool *out_pool)
KAPI b8 threadpool_wait(threadpool *pool)
KAPI void threadpool_destroy(threadpool *pool)