MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sal_lock

Function sal_lock

components/net/sal/src/sal_socket.c:389–398  ·  view source on GitHub ↗

* This function will lock sal socket. * * @note please don't invoke it on ISR. */

Source from the content-addressed store, hash-verified

387 * @note please don't invoke it on ISR.
388 */
389static 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.

Callers 3

sal_netdev_cleanupFunction · 0.85
socket_newFunction · 0.85
socket_deleteFunction · 0.85

Calls 1

rt_mutex_takeFunction · 0.85

Tested by

no test coverage detected