Lines Matching refs:pfd
246 struct pollfd pfd; in isEmpty() local
248 pfd.fd = this->fd_read; in isEmpty()
249 pfd.events = POLLIN; in isEmpty()
250 pfd.revents = 0; in isEmpty()
260 if( -1 == poll(&pfd,1,0) ) in isEmpty()
267 if(pfd.revents & POLLIN) in isEmpty()
328 struct pollfd pfd[3]; in waitForMsg() local
337 pfd[0].fd = queue1->getInFd(); in waitForMsg()
338 if(!pfd[0].fd) in waitForMsg()
344 pfd[0].events = POLLIN; in waitForMsg()
345 pfd[0].revents = 0; in waitForMsg()
349 pfd[1].fd = queue2->getInFd(); in waitForMsg()
350 if(!pfd[1].fd) in waitForMsg()
357 pfd[1].events = POLLIN; in waitForMsg()
358 pfd[1].revents = 0; in waitForMsg()
365 pfd[2].fd = queue3->getInFd(); in waitForMsg()
366 if(!pfd[2].fd) in waitForMsg()
373 pfd[2].events = POLLIN; in waitForMsg()
374 pfd[2].revents = 0; in waitForMsg()
379 int ret = poll(pfd, n, timeout); in waitForMsg()
393 if (pfd[0].revents & POLLIN) in waitForMsg()
400 if (pfd[1].revents & POLLIN) in waitForMsg()
408 if (pfd[2].revents & POLLIN) in waitForMsg()