Searched refs:acquisitionThread (Results 1 – 3 of 3) sorted by relevance
27 Sensor::Sensor() : acquisitionThread(nullptr), handle(-1), type(-1), delay(kMaxDelay) {} in Sensor()30 if (acquisitionThread != nullptr) { in ~Sensor()31 delete acquisitionThread; in ~Sensor()32 acquisitionThread = nullptr; in ~Sensor()43 if (acquisitionThread == nullptr) { in readOneEvent()49 fd = acquisitionThread->getReadPipeFd(); in readOneEvent()69 if (acquisitionThread == nullptr) { in activateAcquisitionThread()70 acquisitionThread = new AcquisitionThread(pollFd, this); in activateAcquisitionThread()71 if (!acquisitionThread->init()) { in activateAcquisitionThread()74 delete acquisitionThread; in activateAcquisitionThread()[all …]
26 AcquisitionThread *acquisitionThread = reinterpret_cast<AcquisitionThread *>(param); in acquisitionRoutine() local33 if (acquisitionThread == nullptr) { in acquisitionRoutine()38 sensor = acquisitionThread->sensor; in acquisitionRoutine()50 pthread_mutex_lock(&acquisitionThread->pthreadMutex); in acquisitionRoutine()56 while(acquisitionThread->getWritePipeFd() != -1) { in acquisitionRoutine()64 rc = write(acquisitionThread->getWritePipeFd(), &data, sizeof(sensors_event_t)); in acquisitionRoutine()70 if (acquisitionThread->getWritePipeFd() == -1) { in acquisitionRoutine()77 …pthread_cond_timedwait(&acquisitionThread->pthreadCond, &acquisitionThread->pthreadMutex, &target_… in acquisitionRoutine()81 pthread_mutex_unlock(&acquisitionThread->pthreadMutex); in acquisitionRoutine()
132 AcquisitionThread *acquisitionThread; member in Sensor