Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os-example-mbed5-blinky by
baidu_ca_mutex.h
00001 // Copyright 2017 Baidu Inc. All Rights Reserved. 00002 // Author: Su Hao (suhao@baidu.com) 00003 // 00004 // Description: Wrapper for mutex 00005 00006 #ifndef BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SOURCE_BAIDU_CA_MUTEX_H 00007 #define BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SOURCE_BAIDU_CA_MUTEX_H 00008 00009 #include "baidu_ca_types.h" 00010 #include "baidu_ca.h" 00011 00012 /* 00013 * Create mutex context 00014 * 00015 * @Return bca_mutex_t, the created mutex context 00016 */ 00017 BCA_INT bca_mutex_t bca_mutex_create(void); 00018 00019 /* 00020 * Mutex lock 00021 * 00022 * @Return bca_mutex_t, the mutex context 00023 */ 00024 BCA_INT bca_status_t bca_mutex_lock(bca_mutex_t mutex); 00025 00026 /* 00027 * Mutex unlock 00028 * 00029 * @Return bca_mutex_t, the mutex context 00030 */ 00031 BCA_INT bca_status_t bca_mutex_unlock(bca_mutex_t mutex); 00032 00033 /* 00034 * Destroy the mutex context 00035 * 00036 * @Return bca_mutex_t, the mutex context 00037 */ 00038 BCA_INT bca_status_t bca_mutex_destroy(bca_mutex_t mutex); 00039 00040 #endif // BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SOURCE_BAIDU_CA_MUTEX_H
Generated on Tue Jul 12 2022 16:28:52 by
1.7.2
