TuyaOS
tuya_hal_mutex.h
浏览该文件的文档.
1
10#ifndef _TUYA_HAL_MUTEX_H
11#define _TUYA_HAL_MUTEX_H
12
13#include "tal_mutex.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#define tuya_hal_mutex_create_init(handle) \
20 tal_mutex_create_init(handle)
21
22#define tuya_hal_mutex_lock(handle) \
23 tal_mutex_lock(handle)
24
25#define tuya_hal_mutex_unlock(handle) \
26 tal_mutex_unlock(handle)
27
28#define tuya_hal_mutex_release(handle) \
29 tal_mutex_release(handle)
30
31
32#ifdef __cplusplus
33}
34#endif /* __cplusplus */
35
36#endif
Common process - adapter the mutex api provide by OS