mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
committed by
Masayuki Ishikawa
parent
6b89b6f945
commit
1d8af7e105
@@ -641,7 +641,7 @@ int usrsock_do_request(FAR struct usrsock_conn_s *conn,
|
||||
|
||||
/* Set outstanding request for daemon to handle. */
|
||||
|
||||
net_sem_wait_uninterruptible(&req->lock);
|
||||
net_mutex_lock(&req->lock);
|
||||
if (++req->newxid == 0)
|
||||
{
|
||||
++req->newxid;
|
||||
@@ -704,7 +704,7 @@ void usrsock_abort(void)
|
||||
* requests.
|
||||
*/
|
||||
|
||||
ret = net_sem_timedwait(&req->lock, 10);
|
||||
ret = net_mutex_timedlock(&req->lock, 10);
|
||||
if (ret < 0)
|
||||
{
|
||||
if (ret != -ETIMEDOUT && ret != -EINTR)
|
||||
|
||||
Reference in New Issue
Block a user