Replace nxsem API when used as a lock with nxmutex API

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
anjiahao
2022-09-06 14:18:45 +08:00
committed by Masayuki Ishikawa
parent 0dfd1f004d
commit d1d46335df
710 changed files with 7503 additions and 14852 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ int inode_find(FAR struct inode_search_s *desc)
* references on the node.
*/
ret = inode_semtake();
ret = inode_lock();
if (ret < 0)
{
return ret;
@@ -74,6 +74,6 @@ int inode_find(FAR struct inode_search_s *desc)
node->i_crefs++;
}
inode_semgive();
inode_unlock();
return ret;
}