mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
25 lines
433 B
C
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
|