Home | History | Annotate | Download | only in src

Lines Matching refs:ok

169     int ok;
175 ok = pthread_mutex_lock(&tp->mMutex);
176 assert(0 == ok);
178 ok = pthread_cond_broadcast(&tp->mCondNotEmpty);
179 assert(0 == ok);
180 ok = pthread_cond_broadcast(&tp->mCondNotFull);
181 assert(0 == ok);
182 ok = pthread_mutex_unlock(&tp->mMutex);
183 assert(0 == ok);
186 ok = pthread_join(tp->mThreadArray[i], (void **) NULL);
187 assert(ok == 0);
191 ok = pthread_mutex_lock(&tp->mMutex);
192 assert(0 == ok);
202 ok = pthread_mutex_unlock(&tp->mMutex);
203 assert(0 == ok);
205 ok = pthread_mutex_lock(&tp->mMutex);
206 assert(0 == ok);
208 ok = pthread_mutex_unlock(&tp->mMutex);
209 assert(0 == ok);
215 ok = pthread_cond_destroy(&tp->mCondNotEmpty);
216 assert(0 == ok);
219 ok = pthread_cond_destroy(&tp->mCondNotFull);
220 assert(0 == ok);
223 ok = pthread_mutex_destroy(&tp->mMutex);
224 assert(0 == ok);
279 int ok;
280 ok = pthread_mutex_lock(&tp->mMutex);
281 assert(0 == ok);
284 ok = pthread_mutex_unlock(&tp->mMutex);
285 assert(0 == ok);
297 ok = pthread_cond_wait(&tp->mCondNotFull, &tp->mMutex);
298 assert(0 == ok);
303 ok = pthread_mutex_unlock(&tp->mMutex);
304 assert(0 == ok);
316 ok = pthread_cond_signal(&tp->mCondNotEmpty);
317 assert(0 == ok);
321 ok = pthread_mutex_unlock(&tp->mMutex);
322 assert(0 == ok);
330 int ok;
331 ok = pthread_mutex_lock(&tp->mMutex);
332 assert(0 == ok);
343 ok = pthread_cond_wait(&tp->mCondNotEmpty, &tp->mMutex);
344 assert(0 == ok);
360 ok = pthread_cond_signal(&tp->mCondNotFull);
361 assert(0 == ok);
365 ok = pthread_mutex_unlock(&tp->mMutex);
366 assert(0 == ok);