add holder for mutex

Signed-off-by: lilei19 <lilei19@xiaomi.com>
This commit is contained in:
lilei19
2023-01-28 23:02:52 +08:00
committed by Masayuki Ishikawa
parent 6b89b6f945
commit 1d8af7e105
13 changed files with 510 additions and 153 deletions
+2 -2
View File
@@ -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)