Lines Matching refs:pfd
245 struct pollfd pfd; in isEmpty() local
247 pfd.fd = this->fd_read; in isEmpty()
248 pfd.events = POLLIN; in isEmpty()
249 pfd.revents = 0; in isEmpty()
259 if( -1 == poll(&pfd,1,0) ) in isEmpty()
266 if(pfd.revents & POLLIN) in isEmpty()
325 struct pollfd pfd[3]; in waitForMsg() local
334 pfd[0].fd = queue1->getInFd(); in waitForMsg()
335 if(!pfd[0].fd) in waitForMsg()
341 pfd[0].events = POLLIN; in waitForMsg()
342 pfd[0].revents = 0; in waitForMsg()
346 pfd[1].fd = queue2->getInFd(); in waitForMsg()
347 if(!pfd[1].fd) in waitForMsg()
354 pfd[1].events = POLLIN; in waitForMsg()
355 pfd[1].revents = 0; in waitForMsg()
362 pfd[2].fd = queue3->getInFd(); in waitForMsg()
363 if(!pfd[2].fd) in waitForMsg()
370 pfd[2].events = POLLIN; in waitForMsg()
371 pfd[2].revents = 0; in waitForMsg()
376 int ret = poll(pfd, n, timeout); in waitForMsg()
390 if (pfd[0].revents & POLLIN) in waitForMsg()
397 if (pfd[1].revents & POLLIN) in waitForMsg()
405 if (pfd[2].revents & POLLIN) in waitForMsg()