Kohi Game Engine
ksemaphore.h
Go to the documentation of this file.
1 #ifndef _K_SEMAPHORE_H_
2 #define _K_SEMAPHORE_H_
3 
4 #include "defines.h"
5 
6 typedef struct ksemaphore {
7  void *internal_data;
9 
10 KAPI b8 ksemaphore_create(ksemaphore *out_semaphore, u32 max_count, u32 start_count);
11 
13 
15 
21 KAPI b8 ksemaphore_wait(ksemaphore *semaphore, u64 timeout_ms);
22 
23 #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
unsigned long long u64
Unsigned 64-bit integer.
Definition: defines.h:28
KAPI b8 ksemaphore_signal(ksemaphore *semaphore)
KAPI b8 ksemaphore_wait(ksemaphore *semaphore, u64 timeout_ms)
KAPI void ksemaphore_destroy(ksemaphore *semaphore)
struct ksemaphore ksemaphore
KAPI b8 ksemaphore_create(ksemaphore *out_semaphore, u32 max_count, u32 start_count)
Definition: ksemaphore.h:6
void * internal_data
Definition: ksemaphore.h:7