Lines Matching refs:ok

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