TuyaOS
类型定义 | 函数
tal_mutex.h 文件参考

Common process - adapter the mutex api provide by OS 更多...

#include "tuya_cloud_types.h"
tal_mutex.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

类型定义

typedef PVOID_T MUTEX_HANDLE
 

函数

OPERATE_RET tal_mutex_create_init (MUTEX_HANDLE *handle)
 Create mutex 更多...
 
OPERATE_RET tal_mutex_lock (CONST MUTEX_HANDLE handle)
 Lock mutex 更多...
 
OPERATE_RET tal_mutex_release (CONST MUTEX_HANDLE handle)
 Release mutex 更多...
 
OPERATE_RET tal_mutex_unlock (CONST MUTEX_HANDLE handle)
 Unlock mutex 更多...
 

详细描述

Common process - adapter the mutex api provide by OS

版本
0.1
日期
2021-08-24

函数说明

◆ tal_mutex_create_init()

OPERATE_RET tal_mutex_create_init ( MUTEX_HANDLE *  handle)

Create mutex

参数
[out]handlemutex handle
注解
This API is used to create and init mutex.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_mutex_lock()

OPERATE_RET tal_mutex_lock ( CONST MUTEX_HANDLE  handle)

Lock mutex

参数
[in]handlemutex handle
注解
This API is used to lock mutex.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_mutex_release()

OPERATE_RET tal_mutex_release ( CONST MUTEX_HANDLE  handle)

Release mutex

参数
[in]mutexHandlemutex handle
注解
This API is used to release mutex.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_mutex_unlock()

OPERATE_RET tal_mutex_unlock ( CONST MUTEX_HANDLE  handle)

Unlock mutex

参数
[in]handlemutex handle
注解
This API is used to unlock mutex.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h