DungeonCrawl
|
The implementation of a thread handler for working with threads. More...
Go to the source code of this file.
Data Structures | |
struct | thread_func_wrapper_t |
Functions | |
void * | thread_wrapper (void *arg) |
A wrapper function arround a thread for multi platform thread implementation. | |
void | start_simple_thread (void(*thread_func)(void)) |
Starts a new thread with the given function. |
The implementation of a thread handler for working with threads.
Definition in file thread_handler.c.
void start_simple_thread | ( | void(* | thread_func )(void) | ) |
Starts a new thread with the given function.
The thread will be detached, so it will run independently.
thread_func | A simple function pointer to the function that will be executed in the thread. |
Definition at line 56 of file thread_handler.c.
void * thread_wrapper | ( | void * | arg | ) |
A wrapper function arround a thread for multi platform thread implementation.
arg | The arguments to pass to the thread. |
Definition at line 49 of file thread_handler.c.