Home | History | Annotate | Download | only in test

Lines Matching defs:thread

174     buffer_thread_t thread;
181 pthread_mutex_init(&thread.mutex, NULL);
182 pthread_cond_init(&thread.cond, NULL);
183 thread.is_thread_started = 0;
184 thread.readfd = pfd[0];
185 thread.writefd = pfd[1];
186 thread.data_obj = this;
187 ret = pthread_create(&thread.td, &attr, hal3_thread_ops, &thread );
188 pthread_setname_np(thread.td, "TestApp_Thread");
190 LOGE("Failed to create status thread");
193 pthread_mutex_lock(&thread.mutex);
194 while(thread.is_thread_started == 0) {
195 pthread_cond_wait(&thread.cond, &thread.mutex);
197 pthread_mutex_unlock(&thread.mutex);
203 buffer_thread_t *thread = (buffer_thread_t*)data;
206 pthread_mutex_lock(&thread->mutex);
207 thread->is_thread_started = 1;
208 readfd = thread->readfd;
209 writefd = thread->writefd;
211 obj = (QCameraHAL3SnapshotTest *)thread->data_obj;
212 pthread_cond_signal(&thread->cond);
213 pthread_mutex_unlock(&thread->mutex);
239 LOGE("Unable to poll exiting the thread");
243 LOGD("Sensor thread is exiting");