提交 be5344ae 编写于 作者: O openharmony_ci 提交者: Gitee

!132 fix: correct ECB in comment

Merge pull request !132 from kenneth/los_sem.c
...@@ -46,7 +46,7 @@ LITE_OS_SEC_BSS LosSemCB *g_allSem = NULL; ...@@ -46,7 +46,7 @@ LITE_OS_SEC_BSS LosSemCB *g_allSem = NULL;
/***************************************************************************** /*****************************************************************************
Function : OsSemInit Function : OsSemInit
Description : Initialize the Semaphore doubly linked list Description : Initialize the Semaphore doubly linked list
Input : None Input : None
Output : None Output : None
Return : LOS_OK on success, or error code on failure Return : LOS_OK on success, or error code on failure
...@@ -67,7 +67,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsSemInit(VOID) ...@@ -67,7 +67,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsSemInit(VOID)
return LOS_ERRNO_SEM_NO_MEMORY; return LOS_ERRNO_SEM_NO_MEMORY;
} }
/* Connect all the ECBs in a doubly linked list. */ /* Connect all the semaphore CBs in a doubly linked list. */
for (index = 0; index < LOSCFG_BASE_IPC_SEM_LIMIT; index++) { for (index = 0; index < LOSCFG_BASE_IPC_SEM_LIMIT; index++) {
semNode = ((LosSemCB *)g_allSem) + index; semNode = ((LosSemCB *)g_allSem) + index;
semNode->semID = index; semNode->semID = index;
...@@ -79,7 +79,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsSemInit(VOID) ...@@ -79,7 +79,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsSemInit(VOID)
/***************************************************************************** /*****************************************************************************
Function : OsSemCreate Function : OsSemCreate
Description : create the Semaphore Description : create the Semaphore
Input : count --- Semaphore count Input : count --- Semaphore count
: maxCount --- Max semaphore count for check : maxCount --- Max semaphore count for check
Output : semHandle --- Index of semaphore Output : semHandle --- Index of semaphore
...@@ -313,4 +313,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SemPost(UINT32 semHandle) ...@@ -313,4 +313,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SemPost(UINT32 semHandle)
} }
#endif /* (LOSCFG_BASE_IPC_SEM == 1) */ #endif /* (LOSCFG_BASE_IPC_SEM == 1) */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册