Home | History | Annotate | Download | only in updater

Lines Matching refs:nti

309     NewThreadInfo* nti = reinterpret_cast<NewThreadInfo*>(cookie);
312 // Wait for nti->rss to be non-null, indicating some of this
314 pthread_mutex_lock(&nti->mu);
315 while (nti->rss == nullptr) {
316 pthread_cond_wait(&nti->cv, &nti->mu);
318 pthread_mutex_unlock(&nti->mu);
320 // At this point nti->rss is set, and we own it. The main
321 // thread is waiting for it to disappear from nti.
322 ssize_t written = RangeSinkWrite(data, size, nti->rss);
326 if (nti->rss->p_block == nti->rss->tgt.count) {
329 pthread_mutex_lock(&nti->mu);
330 nti->rss = nullptr;
331 pthread_cond_broadcast(&nti->cv);
332 pthread_mutex_unlock(&nti->mu);
340 NewThreadInfo* nti = (NewThreadInfo*) cookie;
341 mzProcessZipEntryContents(nti->za, nti->entry, receive_new_data, nti);
407 NewThreadInfo nti;
1186 pthread_mutex_lock(&params.nti.mu);
1187 params.nti.rss = &rss;
1188 pthread_cond_broadcast(&params.nti.cv);
1190 while (params.nti.rss) {
1191 pthread_cond_wait(&params.nti.cv, &params.nti.mu);
1194 pthread_mutex_unlock(&params.nti.mu);
1464 params.nti.za = za;
1465 params.nti.entry = new_entry;
1467 pthread_mutex_init(&params.nti.mu, nullptr);
1468 pthread_cond_init(&params.nti.cv, nullptr);
1473 int error = pthread_create(&params.thread, &attr, unzip_new_data, &params.nti);