提交 51e587ca 编写于 作者: O openharmony_ci 提交者: Gitee

!59 【轻量级 PR】:update kernel/base/ipc/los_futex.c.

Merge pull request !59 from 冷钦街/N/A
...@@ -319,15 +319,11 @@ STATIC VOID OsFutexInsertNewFutexKeyToHash(FutexNode *node) ...@@ -319,15 +319,11 @@ STATIC VOID OsFutexInsertNewFutexKeyToHash(FutexNode *node)
futexList != &(hashNode->lockList); futexList != &(hashNode->lockList);
futexList = futexList->pstNext) { futexList = futexList->pstNext) {
headNode = OS_FUTEX_FROM_FUTEXLIST(futexList); headNode = OS_FUTEX_FROM_FUTEXLIST(futexList);
if (node->key > headNode->key) { if (node->key <= headNode->key) {
continue;
} else if (node->key < headNode->key) {
LOS_ListTailInsert(&(headNode->futexList), &(node->futexList)); LOS_ListTailInsert(&(headNode->futexList), &(node->futexList));
break; break;
} }
LOS_ListTailInsert(&(headNode->futexList), &(node->futexList));
break;
} }
EXIT: EXIT:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册