nishbox/engine/include/gf_thread.h
2025-04-12 15:41:53 +09:00

25 lines
433 B
C

/**
* Thread
*
* Wrapper for platform-dependent thread.
*/
#ifndef __GF_THREAD_H__
#define __GF_THREAD_H__
#include <gf_pre.h>
#include <gf_macro.h>
/* Type */
#include <gf_type/thread.h>
/* Engine */
/* Standard */
GF_EXPORT gf_thread_t* gf_create_thread(void (*func)(void*), void* userdata);
GF_EXPORT void gf_join_thread(gf_thread_t* thread);
GF_EXPORT void gf_destroy_thread(gf_thread_t* thread);
#endif