comparison gsm-fw/gpf/osl/os_sem_fl.c @ 445:9eeeef3ff7db

os_sem_fl.c: os_QuerySemaphore() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Jun 2014 01:19:50 +0000
parents caeff442faf1
children 57f8e2b747c4
comparison
equal deleted inserted replaced
444:caeff442faf1 445:9eeeef3ff7db
94 goto error_out; 94 goto error_out;
95 if (sts == NU_SUCCESS) 95 if (sts == NU_SUCCESS)
96 NU_Release_Semaphore(&SemSemCB); 96 NU_Release_Semaphore(&SemSemCB);
97 return(OS_OK); 97 return(OS_OK);
98 } 98 }
99
100 GLOBAL LONG
101 os_QuerySemaphore(OS_HANDLE TaskHandle, OS_HANDLE SemHandle, USHORT *Count)
102 {
103 OPTION SuspendType;
104 UNSIGNED SemCount, TasksWaiting;
105 NU_TASK *First;
106 CHAR Name[NU_MAX_NAME];
107
108 if (NU_Semaphore_Information(&SemTable[SemHandle].SemCB, Name,
109 &SemCount, &SuspendType, &TasksWaiting,
110 &First) != NU_SUCCESS)
111 return(OS_ERROR);
112 *Count = SemCount;
113 return(OS_OK);
114 }