From e2aeb1ff1d4cd54a752c9f6ef976ee8e353da620 Mon Sep 17 00:00:00 2001 From: kenneth <459864689@qq.com> Date: Tue, 18 May 2021 11:09:48 +0800 Subject: [PATCH] fix: correct ECB in comment change ECBs to semaphore CBs, and remove extra blank close https://gitee.com/openharmony/kernel_liteos_m/issues/I3RPRQ --- kernel/src/los_sem.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/src/los_sem.c b/kernel/src/los_sem.c index fbecace5..fdf8f52d 100644 --- a/kernel/src/los_sem.c +++ b/kernel/src/los_sem.c @@ -46,7 +46,7 @@ LITE_OS_SEC_BSS LosSemCB *g_allSem = NULL; /***************************************************************************** Function : OsSemInit - Description : Initialize the Semaphore doubly linked list + Description : Initialize the Semaphore doubly linked list Input : None Output : None Return : LOS_OK on success, or error code on failure @@ -67,7 +67,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsSemInit(VOID) 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++) { semNode = ((LosSemCB *)g_allSem) + index; semNode->semID = index; @@ -79,7 +79,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsSemInit(VOID) /***************************************************************************** Function : OsSemCreate - Description : create the Semaphore + Description : create the Semaphore Input : count --- Semaphore count : maxCount --- Max semaphore count for check Output : semHandle --- Index of semaphore @@ -313,4 +313,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SemPost(UINT32 semHandle) } #endif /* (LOSCFG_BASE_IPC_SEM == 1) */ -