changeset 451:578ba9dfc369

os_sem_ir.c: os_ReleaseSemaphore() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Jun 2014 02:58:34 +0000
parents 8768b9f28073
children d461c532c76d
files gsm-fw/gpf/osl/os_sem_ir.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_sem_ir.c	Mon Jun 23 02:55:22 2014 +0000
+++ b/gsm-fw/gpf/osl/os_sem_ir.c	Mon Jun 23 02:58:34 2014 +0000
@@ -26,6 +26,15 @@
 		return(OS_ERROR);
 }
 
+GLOBAL LONG
+os_ReleaseSemaphore(OS_HANDLE TaskHandle, OS_HANDLE SemHandle)
+{
+	if (NU_Release_Semaphore(&SemTable[SemHandle].SemCB) == NU_SUCCESS)
+		return(OS_OK);
+	else
+		return(OS_ERROR);
+}
+
 int
 ObtainSemaphoreCB(NU_SEMAPHORE *SemCB, ULONG Timeout, USHORT wait_check)
 {