comparison gsm-fw/gpf/osl/os_sem_ir.c @ 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
comparison
equal deleted inserted replaced
450:8768b9f28073 451:578ba9dfc369
24 return(OS_OK); 24 return(OS_OK);
25 else 25 else
26 return(OS_ERROR); 26 return(OS_ERROR);
27 } 27 }
28 28
29 GLOBAL LONG
30 os_ReleaseSemaphore(OS_HANDLE TaskHandle, OS_HANDLE SemHandle)
31 {
32 if (NU_Release_Semaphore(&SemTable[SemHandle].SemCB) == NU_SUCCESS)
33 return(OS_OK);
34 else
35 return(OS_ERROR);
36 }
37
29 int 38 int
30 ObtainSemaphoreCB(NU_SEMAPHORE *SemCB, ULONG Timeout, USHORT wait_check) 39 ObtainSemaphoreCB(NU_SEMAPHORE *SemCB, ULONG Timeout, USHORT wait_check)
31 { 40 {
32 41
33 42