Lines Matching refs:nCount
38 int nCount; member
73 pSemaphoreImpl->nCount = initialCount; in osl_createSemaphore()
112 int nCount; in osl_acquireSemaphore() local
117 while( pSemaphoreImpl->nCount < 1 ) in osl_acquireSemaphore()
129 pSemaphoreImpl->nCount--; in osl_acquireSemaphore()
146 int nCount; in osl_tryToAcquireSemaphore() local
151 nCount = pSemaphoreImpl->nCount; in osl_tryToAcquireSemaphore()
152 if( pSemaphoreImpl->nCount > 0 ) in osl_tryToAcquireSemaphore()
153 pSemaphoreImpl->nCount--; in osl_tryToAcquireSemaphore()
157 return( nCount > 0 ); in osl_tryToAcquireSemaphore()
170 int nCount; in osl_releaseSemaphore() local
175 nCount = pSemaphoreImpl->nCount; in osl_releaseSemaphore()
176 pSemaphoreImpl->nCount++; in osl_releaseSemaphore()
180 if( nCount == 0 ) in osl_releaseSemaphore()