mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
ble_mesh: stack: Make some internal static functions inline
This commit is contained in:
@ -379,7 +379,8 @@ static inline void sys_dlist_prepend(sys_dlist_t *list, sys_dnode_t *node)
|
||||
*/
|
||||
|
||||
static inline void sys_dlist_insert_after(sys_dlist_t *list,
|
||||
sys_dnode_t *insert_point, sys_dnode_t *node)
|
||||
sys_dnode_t *insert_point,
|
||||
sys_dnode_t *node)
|
||||
{
|
||||
if (!insert_point) {
|
||||
sys_dlist_prepend(list, node);
|
||||
@ -405,7 +406,8 @@ static inline void sys_dlist_insert_after(sys_dlist_t *list,
|
||||
*/
|
||||
|
||||
static inline void sys_dlist_insert_before(sys_dlist_t *list,
|
||||
sys_dnode_t *insert_point, sys_dnode_t *node)
|
||||
sys_dnode_t *insert_point,
|
||||
sys_dnode_t *node)
|
||||
{
|
||||
if (!insert_point) {
|
||||
sys_dlist_append(list, node);
|
||||
|
@ -82,7 +82,7 @@ void bt_mesh_mutex_unlock(bt_mesh_mutex_t *mutex)
|
||||
}
|
||||
}
|
||||
|
||||
static void bt_mesh_alarm_mutex_new(void)
|
||||
static inline void bt_mesh_alarm_mutex_new(void)
|
||||
{
|
||||
if (!alarm_lock.mutex) {
|
||||
bt_mesh_mutex_create(&alarm_lock);
|
||||
@ -99,7 +99,7 @@ void bt_mesh_alarm_unlock(void)
|
||||
bt_mesh_mutex_unlock(&alarm_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_list_mutex_new(void)
|
||||
static inline void bt_mesh_list_mutex_new(void)
|
||||
{
|
||||
if (!list_lock.mutex) {
|
||||
bt_mesh_mutex_create(&list_lock);
|
||||
@ -116,7 +116,7 @@ void bt_mesh_list_unlock(void)
|
||||
bt_mesh_mutex_unlock(&list_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_buf_mutex_new(void)
|
||||
static inline void bt_mesh_buf_mutex_new(void)
|
||||
{
|
||||
if (!buf_lock.mutex) {
|
||||
bt_mesh_mutex_create(&buf_lock);
|
||||
@ -133,7 +133,7 @@ void bt_mesh_buf_unlock(void)
|
||||
bt_mesh_mutex_unlock(&buf_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_atomic_mutex_new(void)
|
||||
static inline void bt_mesh_atomic_mutex_new(void)
|
||||
{
|
||||
if (!atomic_lock.mutex) {
|
||||
bt_mesh_mutex_create(&atomic_lock);
|
||||
@ -159,22 +159,22 @@ void bt_mesh_mutex_init(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_alarm_mutex_free(void)
|
||||
static inline void bt_mesh_alarm_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&alarm_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_list_mutex_free(void)
|
||||
static inline void bt_mesh_list_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&list_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_buf_mutex_free(void)
|
||||
static inline void bt_mesh_buf_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&buf_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_atomic_mutex_free(void)
|
||||
static inline void bt_mesh_atomic_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&atomic_lock);
|
||||
}
|
||||
@ -186,4 +186,4 @@ void bt_mesh_mutex_deinit(void)
|
||||
bt_mesh_buf_mutex_free();
|
||||
bt_mesh_atomic_mutex_free();
|
||||
}
|
||||
#endif
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
@ -72,7 +72,7 @@ static const bt_mesh_client_op_pair_t cfg_op_pair[] = {
|
||||
|
||||
static bt_mesh_mutex_t cfg_client_lock;
|
||||
|
||||
static void bt_mesh_cfg_client_mutex_new(void)
|
||||
static inline void bt_mesh_cfg_client_mutex_new(void)
|
||||
{
|
||||
if (!cfg_client_lock.mutex) {
|
||||
bt_mesh_mutex_create(&cfg_client_lock);
|
||||
@ -80,18 +80,18 @@ static void bt_mesh_cfg_client_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_cfg_client_mutex_free(void)
|
||||
static inline void bt_mesh_cfg_client_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&cfg_client_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_cfg_client_lock(void)
|
||||
static inline void bt_mesh_cfg_client_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&cfg_client_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_cfg_client_unlock(void)
|
||||
static inline void bt_mesh_cfg_client_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&cfg_client_lock);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ static const bt_mesh_client_op_pair_t health_op_pair[] = {
|
||||
|
||||
static bt_mesh_mutex_t health_client_lock;
|
||||
|
||||
static void bt_mesh_health_client_mutex_new(void)
|
||||
static inline void bt_mesh_health_client_mutex_new(void)
|
||||
{
|
||||
if (!health_client_lock.mutex) {
|
||||
bt_mesh_mutex_create(&health_client_lock);
|
||||
@ -38,18 +38,18 @@ static void bt_mesh_health_client_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_health_client_mutex_free(void)
|
||||
static inline void bt_mesh_health_client_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&health_client_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_health_client_lock(void)
|
||||
static inline void bt_mesh_health_client_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&health_client_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_health_client_unlock(void)
|
||||
static inline void bt_mesh_health_client_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&health_client_lock);
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ static const struct bt_mesh_prov *prov;
|
||||
#if defined(CONFIG_BLE_MESH_PB_ADV)
|
||||
static bt_mesh_mutex_t pb_buf_lock;
|
||||
|
||||
static void bt_mesh_pb_buf_mutex_new(void)
|
||||
static inline void bt_mesh_pb_buf_mutex_new(void)
|
||||
{
|
||||
if (!pb_buf_lock.mutex) {
|
||||
bt_mesh_mutex_create(&pb_buf_lock);
|
||||
@ -204,18 +204,18 @@ static void bt_mesh_pb_buf_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_pb_buf_mutex_free(void)
|
||||
static inline void bt_mesh_pb_buf_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&pb_buf_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_pb_buf_lock(void)
|
||||
static inline void bt_mesh_pb_buf_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&pb_buf_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_pb_buf_unlock(void)
|
||||
static inline void bt_mesh_pb_buf_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&pb_buf_lock);
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ static u16_t node_count;
|
||||
|
||||
static int provisioner_remove_node(u16_t index, bool erase);
|
||||
|
||||
static void bt_mesh_provisioner_mutex_new(void)
|
||||
static inline void bt_mesh_provisioner_mutex_new(void)
|
||||
{
|
||||
if (!provisioner_lock.mutex) {
|
||||
bt_mesh_mutex_create(&provisioner_lock);
|
||||
@ -44,18 +44,18 @@ static void bt_mesh_provisioner_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_provisioner_mutex_free(void)
|
||||
static inline void bt_mesh_provisioner_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&provisioner_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_provisioner_lock(void)
|
||||
static inline void bt_mesh_provisioner_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&provisioner_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_provisioner_unlock(void)
|
||||
static inline void bt_mesh_provisioner_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&provisioner_lock);
|
||||
}
|
||||
|
@ -356,7 +356,7 @@ static u8_t adv_buf_data[ADV_BUF_SIZE * CONFIG_BLE_MESH_PBA_SAME_TIME];
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BLE_MESH_PB_ADV)
|
||||
static void bt_mesh_pb_adv_mutex_new(void)
|
||||
static inline void bt_mesh_pb_adv_mutex_new(void)
|
||||
{
|
||||
if (!prov_ctx.pb_adv_lock.mutex) {
|
||||
bt_mesh_mutex_create(&prov_ctx.pb_adv_lock);
|
||||
@ -364,23 +364,23 @@ static void bt_mesh_pb_adv_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_pb_adv_mutex_free(void)
|
||||
static inline void bt_mesh_pb_adv_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&prov_ctx.pb_adv_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_pb_adv_lock(void)
|
||||
static inline void bt_mesh_pb_adv_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&prov_ctx.pb_adv_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_pb_adv_unlock(void)
|
||||
static inline void bt_mesh_pb_adv_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&prov_ctx.pb_adv_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_pb_buf_mutex_new(void)
|
||||
static inline void bt_mesh_pb_buf_mutex_new(void)
|
||||
{
|
||||
if (!prov_ctx.pb_buf_lock.mutex) {
|
||||
bt_mesh_mutex_create(&prov_ctx.pb_buf_lock);
|
||||
@ -388,25 +388,25 @@ static void bt_mesh_pb_buf_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_pb_buf_mutex_free(void)
|
||||
static inline void bt_mesh_pb_buf_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&prov_ctx.pb_buf_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_pb_buf_lock(void)
|
||||
static inline void bt_mesh_pb_buf_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&prov_ctx.pb_buf_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_pb_buf_unlock(void)
|
||||
static inline void bt_mesh_pb_buf_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&prov_ctx.pb_buf_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_PB_ADV */
|
||||
|
||||
#if defined(CONFIG_BLE_MESH_PB_GATT)
|
||||
static void bt_mesh_pb_gatt_mutex_new(void)
|
||||
static inline void bt_mesh_pb_gatt_mutex_new(void)
|
||||
{
|
||||
if (!prov_ctx.pb_gatt_lock.mutex) {
|
||||
bt_mesh_mutex_create(&prov_ctx.pb_gatt_lock);
|
||||
@ -414,18 +414,18 @@ static void bt_mesh_pb_gatt_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_pb_gatt_mutex_free(void)
|
||||
static inline void bt_mesh_pb_gatt_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&prov_ctx.pb_gatt_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_pb_gatt_lock(void)
|
||||
static inline void bt_mesh_pb_gatt_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&prov_ctx.pb_gatt_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_pb_gatt_unlock(void)
|
||||
static inline void bt_mesh_pb_gatt_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&prov_ctx.pb_gatt_lock);
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ struct node_info {
|
||||
|
||||
static bt_mesh_mutex_t settings_lock;
|
||||
|
||||
static void bt_mesh_settings_mutex_new(void)
|
||||
static inline void bt_mesh_settings_mutex_new(void)
|
||||
{
|
||||
if (settings_lock.mutex == NULL) {
|
||||
bt_mesh_mutex_create(&settings_lock);
|
||||
@ -179,7 +179,7 @@ static void bt_mesh_settings_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_settings_mutex_free(void)
|
||||
static inline void bt_mesh_settings_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&settings_lock);
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ static u16_t hb_sub_dst = BLE_MESH_ADDR_UNASSIGNED;
|
||||
static bt_mesh_mutex_t tx_seg_lock;
|
||||
static bt_mesh_mutex_t rx_seg_lock;
|
||||
|
||||
static void bt_mesh_tx_seg_mutex_new(void)
|
||||
static inline void bt_mesh_tx_seg_mutex_new(void)
|
||||
{
|
||||
if (!tx_seg_lock.mutex) {
|
||||
bt_mesh_mutex_create(&tx_seg_lock);
|
||||
@ -124,23 +124,23 @@ static void bt_mesh_tx_seg_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_tx_seg_mutex_free(void)
|
||||
static inline void bt_mesh_tx_seg_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&tx_seg_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_tx_seg_lock(void)
|
||||
static inline void bt_mesh_tx_seg_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&tx_seg_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_tx_seg_unlock(void)
|
||||
static inline void bt_mesh_tx_seg_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&tx_seg_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_rx_seg_mutex_new(void)
|
||||
static inline void bt_mesh_rx_seg_mutex_new(void)
|
||||
{
|
||||
if (!rx_seg_lock.mutex) {
|
||||
bt_mesh_mutex_create(&rx_seg_lock);
|
||||
@ -148,18 +148,18 @@ static void bt_mesh_rx_seg_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_rx_seg_mutex_free(void)
|
||||
static inline void bt_mesh_rx_seg_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&rx_seg_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_rx_seg_lock(void)
|
||||
static inline void bt_mesh_rx_seg_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&rx_seg_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_rx_seg_unlock(void)
|
||||
static inline void bt_mesh_rx_seg_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&rx_seg_lock);
|
||||
}
|
||||
|
@ -356,7 +356,7 @@ int bt_mesh_client_send_msg(bt_mesh_client_common_param_t *param,
|
||||
|
||||
static bt_mesh_mutex_t client_model_lock;
|
||||
|
||||
static void bt_mesh_client_model_mutex_new(void)
|
||||
static inline void bt_mesh_client_model_mutex_new(void)
|
||||
{
|
||||
if (!client_model_lock.mutex) {
|
||||
bt_mesh_mutex_create(&client_model_lock);
|
||||
@ -364,7 +364,7 @@ static void bt_mesh_client_model_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_client_model_mutex_free(void)
|
||||
static inline void bt_mesh_client_model_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&client_model_lock);
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ static const bt_mesh_client_op_pair_t gen_op_pair[] = {
|
||||
|
||||
static bt_mesh_mutex_t generic_client_lock;
|
||||
|
||||
static void bt_mesh_generic_client_mutex_new(void)
|
||||
static inline void bt_mesh_generic_client_mutex_new(void)
|
||||
{
|
||||
if (!generic_client_lock.mutex) {
|
||||
bt_mesh_mutex_create(&generic_client_lock);
|
||||
@ -119,18 +119,18 @@ static void bt_mesh_generic_client_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_generic_client_mutex_free(void)
|
||||
static inline void bt_mesh_generic_client_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&generic_client_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_generic_client_lock(void)
|
||||
static inline void bt_mesh_generic_client_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&generic_client_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_generic_client_unlock(void)
|
||||
static inline void bt_mesh_generic_client_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&generic_client_lock);
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ static const bt_mesh_client_op_pair_t sensor_op_pair[] = {
|
||||
|
||||
static bt_mesh_mutex_t sensor_client_lock;
|
||||
|
||||
static void bt_mesh_sensor_client_mutex_new(void)
|
||||
static inline void bt_mesh_sensor_client_mutex_new(void)
|
||||
{
|
||||
if (!sensor_client_lock.mutex) {
|
||||
bt_mesh_mutex_create(&sensor_client_lock);
|
||||
@ -57,18 +57,18 @@ static void bt_mesh_sensor_client_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_sensor_client_mutex_free(void)
|
||||
static inline void bt_mesh_sensor_client_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&sensor_client_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_sensor_client_lock(void)
|
||||
static inline void bt_mesh_sensor_client_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&sensor_client_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_sensor_client_unlock(void)
|
||||
static inline void bt_mesh_sensor_client_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&sensor_client_lock);
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ static const bt_mesh_client_op_pair_t time_scene_op_pair[] = {
|
||||
|
||||
static bt_mesh_mutex_t time_scene_client_lock;
|
||||
|
||||
static void bt_mesh_time_scene_client_mutex_new(void)
|
||||
static inline void bt_mesh_time_scene_client_mutex_new(void)
|
||||
{
|
||||
if (!time_scene_client_lock.mutex) {
|
||||
bt_mesh_mutex_create(&time_scene_client_lock);
|
||||
@ -73,18 +73,18 @@ static void bt_mesh_time_scene_client_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_time_scene_client_mutex_free(void)
|
||||
static inline void bt_mesh_time_scene_client_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&time_scene_client_lock);
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_DEINIT */
|
||||
|
||||
static void bt_mesh_time_scene_client_lock(void)
|
||||
static inline void bt_mesh_time_scene_client_lock(void)
|
||||
{
|
||||
bt_mesh_mutex_lock(&time_scene_client_lock);
|
||||
}
|
||||
|
||||
static void bt_mesh_time_scene_client_unlock(void)
|
||||
static inline void bt_mesh_time_scene_client_unlock(void)
|
||||
{
|
||||
bt_mesh_mutex_unlock(&time_scene_client_lock);
|
||||
}
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
static bt_mesh_mutex_t generic_server_lock;
|
||||
|
||||
static void bt_mesh_generic_server_mutex_new(void)
|
||||
static inline void bt_mesh_generic_server_mutex_new(void)
|
||||
{
|
||||
if (!generic_server_lock.mutex) {
|
||||
bt_mesh_mutex_create(&generic_server_lock);
|
||||
@ -26,7 +26,7 @@ static void bt_mesh_generic_server_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_generic_server_mutex_free(void)
|
||||
static inline void bt_mesh_generic_server_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&generic_server_lock);
|
||||
}
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
static bt_mesh_mutex_t light_server_lock;
|
||||
|
||||
static void bt_mesh_light_server_mutex_new(void)
|
||||
static inline void bt_mesh_light_server_mutex_new(void)
|
||||
{
|
||||
if (!light_server_lock.mutex) {
|
||||
bt_mesh_mutex_create(&light_server_lock);
|
||||
@ -26,7 +26,7 @@ static void bt_mesh_light_server_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_light_server_mutex_free(void)
|
||||
static inline void bt_mesh_light_server_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&light_server_lock);
|
||||
}
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
static bt_mesh_mutex_t time_scene_server_lock;
|
||||
|
||||
static void bt_mesh_time_scene_server_mutex_new(void)
|
||||
static inline void bt_mesh_time_scene_server_mutex_new(void)
|
||||
{
|
||||
if (!time_scene_server_lock.mutex) {
|
||||
bt_mesh_mutex_create(&time_scene_server_lock);
|
||||
@ -31,7 +31,7 @@ static void bt_mesh_time_scene_server_mutex_new(void)
|
||||
}
|
||||
|
||||
#if CONFIG_BLE_MESH_DEINIT
|
||||
static void bt_mesh_time_scene_server_mutex_free(void)
|
||||
static inline void bt_mesh_time_scene_server_mutex_free(void)
|
||||
{
|
||||
bt_mesh_mutex_free(&time_scene_server_lock);
|
||||
}
|
||||
|
Reference in New Issue
Block a user