GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_thread.h
Go to the documentation of this file.
1
7#ifndef __GF_THREAD_H__
8#define __GF_THREAD_H__
9
10#include <gf_pre.h>
11#include <gf_macro.h>
12
13/* Type */
14#include <gf_type/thread.h>
15
16/* Engine */
17
18/* Standard */
19
27GF_EXPORT gf_thread_t* gf_thread_create(void (*func)(void*), void* userdata);
28
35
42
43#endif
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition gf_macro.h:190
Required headers before anything.
void gf_thread_join(gf_thread_t *thread)
Join thread.
Definition gf_thread.c:31
gf_thread_t * gf_thread_create(void(*func)(void *), void *userdata)
Create thread.
Definition gf_thread.c:22
void gf_thread_destroy(gf_thread_t *thread)
Destroy thread.
Definition gf_thread.c:36
Platform-dependent thread.
Definition thread.h:61
Type definitions related to thread interface.