Lines Matching refs:at_slock
59 static rt_mutex_t at_slock = RT_NULL; variable
324 if (at_slock == RT_NULL) in free_socket()
327 at_slock = rt_mutex_create("at_slock", RT_IPC_FLAG_PRIO); in free_socket()
328 if (at_slock == RT_NULL) in free_socket()
335 rt_mutex_take(at_slock, RT_WAITING_FOREVER); in free_socket()
376 rt_mutex_release(at_slock); in free_socket()
387 if (at_slock == RT_NULL) in alloc_socket_by_device()
390 at_slock = rt_mutex_create("at_slock", RT_IPC_FLAG_PRIO); in alloc_socket_by_device()
391 if (at_slock == RT_NULL) in alloc_socket_by_device()
398 rt_mutex_take(at_slock, RT_WAITING_FOREVER); in alloc_socket_by_device()
459 rt_mutex_release(at_slock); in alloc_socket_by_device()
463 rt_mutex_release(at_slock); in alloc_socket_by_device()