|
|
@@ -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);
|
|
|
}
|