comparison gsm-fw/gpf/osl/os_sem_ir.c @ 453:d2b93cfe8e4c

OSL: os_sem_ir.c done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Jun 2014 03:26:30 +0000
parents d461c532c76d
children
comparison
equal deleted inserted replaced
452:d461c532c76d 453:d2b93cfe8e4c
80 */ 80 */
81 return(OS_ERROR); 81 return(OS_ERROR);
82 } 82 }
83 } 83 }
84 } 84 }
85
86 GLOBAL LONG
87 os_ObtainSemaphore(OS_HANDLE TaskHandle, OS_HANDLE SemHandle, ULONG Timeout)
88 {
89 if (SemHandle > MaxSemaphores)
90 return(OS_ERROR);
91 return ObtainSemaphoreCB(&SemTable[SemHandle].SemCB, Timeout, 0);
92 }