hc
2023-02-14 0cc9b7c44253c93447ddf73e206fbdbb3d9f16b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef OS_THREAD_H
#define OS_THREAD_H
#ifdef __cplusplus
extern "C" {
#endif
 
typedef struct {
    void (*run)(void *args);
    void *args;
}os_thread_cfg_t;
 
typedef struct os_thread* os_thread_handle_t;
 
__attribute ((visibility("default"))) os_thread_handle_t os_thread_create(os_thread_cfg_t *cfg);
__attribute ((visibility("default"))) void os_thread_exit(os_thread_handle_t self);
 
#ifdef __cplusplus
}
#endif
#endif