Lines Matching refs:pCond

46   	oslConditionImpl* pCond;  in osl_createCondition()  local
49 pCond = (oslConditionImpl*) malloc(sizeof(oslConditionImpl)); in osl_createCondition()
51 OSL_ASSERT(pCond); in osl_createCondition()
53 if ( pCond == 0 ) in osl_createCondition()
58 pCond->m_State = sal_False; in osl_createCondition()
61 nRet = pthread_cond_init(&pCond->m_Condition, PTHREAD_CONDATTR_DEFAULT); in osl_createCondition()
67 free(pCond); in osl_createCondition()
71 nRet = pthread_mutex_init(&pCond->m_Lock, PTHREAD_MUTEXATTR_DEFAULT); in osl_createCondition()
77 nRet = pthread_cond_destroy(&pCond->m_Condition); in osl_createCondition()
84 free(pCond); in osl_createCondition()
85 pCond = 0; in osl_createCondition()
88 return (oslCondition)pCond; in osl_createCondition()
96 oslConditionImpl* pCond; in osl_destroyCondition() local
101 pCond = (oslConditionImpl*)Condition; in osl_destroyCondition()
103 nRet = pthread_cond_destroy(&pCond->m_Condition); in osl_destroyCondition()
109 nRet = pthread_mutex_destroy(&pCond->m_Lock); in osl_destroyCondition()
127 oslConditionImpl* pCond; in osl_setCondition() local
131 pCond = (oslConditionImpl*)Condition; in osl_setCondition()
133 if ( pCond == 0 ) in osl_setCondition()
138 nRet = pthread_mutex_lock(&pCond->m_Lock); in osl_setCondition()
146 pCond->m_State = sal_True; in osl_setCondition()
147 nRet = pthread_cond_broadcast(&pCond->m_Condition); in osl_setCondition()
155 nRet = pthread_mutex_unlock(&pCond->m_Lock); in osl_setCondition()
172 oslConditionImpl* pCond; in osl_resetCondition() local
177 pCond = (oslConditionImpl*)Condition; in osl_resetCondition()
179 if ( pCond == 0 ) in osl_resetCondition()
184 nRet = pthread_mutex_lock(&pCond->m_Lock); in osl_resetCondition()
192 pCond->m_State = sal_False; in osl_resetCondition()
194 nRet = pthread_mutex_unlock(&pCond->m_Lock); in osl_resetCondition()
210 oslConditionImpl* pCond; in osl_waitCondition() local
215 pCond = (oslConditionImpl*)Condition; in osl_waitCondition()
217 if ( pCond == 0 ) in osl_waitCondition()
222 nRet = pthread_mutex_lock(&pCond->m_Lock); in osl_waitCondition()
232 if ( ! pCond->m_State ) in osl_waitCondition()
246 ret = pthread_cond_timedwait(&pCond->m_Condition, &pCond->m_Lock, &to); in osl_waitCondition()
252 nRet = pthread_mutex_unlock(&pCond->m_Lock); in osl_waitCondition()
264 nRet = pthread_mutex_unlock(&pCond->m_Lock); in osl_waitCondition()
275 while ( !pCond->m_State ); in osl_waitCondition()
280 while ( !pCond->m_State ) in osl_waitCondition()
282 nRet = pthread_cond_wait(&pCond->m_Condition, &pCond->m_Lock); in osl_waitCondition()
288 nRet = pthread_mutex_unlock(&pCond->m_Lock); in osl_waitCondition()
300 nRet = pthread_mutex_unlock(&pCond->m_Lock); in osl_waitCondition()
316 oslConditionImpl* pCond; in osl_checkCondition() local
320 pCond = (oslConditionImpl*)Condition; in osl_checkCondition()
322 if ( pCond == 0 ) in osl_checkCondition()
327 nRet = pthread_mutex_lock(&pCond->m_Lock); in osl_checkCondition()
334 State = pCond->m_State; in osl_checkCondition()
336 nRet = pthread_mutex_unlock(&pCond->m_Lock); in osl_checkCondition()