* This function will lock sal socket. * * @note please don't invoke it on ISR. */
| 387 | * @note please don't invoke it on ISR. |
| 388 | */ |
| 389 | static void sal_lock(void) |
| 390 | { |
| 391 | rt_err_t result; |
| 392 | |
| 393 | result = rt_mutex_take(&sal_core_lock, RT_WAITING_FOREVER); |
| 394 | if (result != RT_EOK) |
| 395 | { |
| 396 | RT_ASSERT(0); |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | /** |
| 401 | * This function will lock sal socket. |
no test coverage detected