2024-06-22 14:51:58 +00:00
|
|
|
#ifndef HW_LIB_SIM_THREAD_H
|
|
|
|
#define HW_LIB_SIM_THREAD_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-09-21 15:07:22 +00:00
|
|
|
#include "SDL3/SDL.h"
|
2024-06-22 14:51:58 +00:00
|
|
|
|
2024-09-21 15:07:22 +00:00
|
|
|
typedef int (*Thread_Func_t)(void *pArg);
|
|
|
|
|
|
|
|
SDL_Thread *ThreadCreat(Thread_Func_t func, char *name, void *pArg);
|
|
|
|
|
|
|
|
void ThreadStop(SDL_Thread *t);
|
2024-06-22 14:51:58 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif //HW_LIB_SIM_THREAD_H
|