Lines Matching refs:pSem
167 osl_TSemImpl* pSem; in osl_createSemaphore() local
172 pSem= (osl_TSemImpl*)Semaphore; in osl_createSemaphore()
177 pSem->m_Id= semget(IPC_PRIVATE, 1, 0666 | IPC_CREAT); in osl_createSemaphore()
181 if (pSem->m_Id < 0) in osl_createSemaphore()
195 if(semctl(pSem->m_Id, 0, SETVAL, arg) < 0) in osl_createSemaphore()
201 if(semctl(pSem->m_Id, 0, IPC_RMID, arg) < 0) in osl_createSemaphore()
223 osl_TSemImpl* pSem= (osl_TSemImpl*)Semaphore; in osl_destroySemaphore() local
225 if(semctl(pSem->m_Id, 0, IPC_RMID, arg) < 0) in osl_destroySemaphore()
249 osl_TSemImpl* pSem= (osl_TSemImpl*)Semaphore; in osl_acquireSemaphore() local
255 return semop(pSem->m_Id, &op, 1) >= 0; in osl_acquireSemaphore()
273 osl_TSemImpl* pSem= (osl_TSemImpl*)Semaphore; in osl_tryToAcquireSemaphore() local
279 return semop(pSem->m_Id, &op, 1) >= 0; in osl_tryToAcquireSemaphore()
297 osl_TSemImpl* pSem= (osl_TSemImpl*)Semaphore; in osl_releaseSemaphore() local
303 return semop(pSem->m_Id, &op, 1) >= 0; in osl_releaseSemaphore()