Kohi Game Engine
worker_thread.h File Reference
#include "containers/queue.h"
#include "threads/kmutex.h"
#include "threads/ksemaphore.h"
#include "threads/kthread.h"
#include "defines.h"

Go to the source code of this file.

Data Structures

struct  worker_thread
 

Typedefs

typedef struct worker_thread worker_thread
 

Functions

KAPI b8 worker_thread_create (worker_thread *out_thread)
 
KAPI void worker_thread_destroy (worker_thread *thread)
 
KAPI b8 worker_thread_add (worker_thread *thread, pfn_thread_start work_fn, void *params)
 
KAPI b8 worker_thread_start (worker_thread *thread)
 
KAPI b8 worker_thread_wait (worker_thread *thread)
 

Typedef Documentation

◆ worker_thread

typedef struct worker_thread worker_thread

Function Documentation

◆ worker_thread_add()

KAPI b8 worker_thread_add ( worker_thread thread,
pfn_thread_start  work_fn,
void *  params 
)

◆ worker_thread_create()

KAPI b8 worker_thread_create ( worker_thread out_thread)

◆ worker_thread_destroy()

KAPI void worker_thread_destroy ( worker_thread thread)

◆ worker_thread_start()

KAPI b8 worker_thread_start ( worker_thread thread)

◆ worker_thread_wait()

KAPI b8 worker_thread_wait ( worker_thread thread)