Lines Matching refs:wake
144 static const size_t wake = numFds - 1;
193 LOGE_IF(result<0, "error creating wake pipe (%s)", strerror(errno));
198 mPollFds[wake].fd = wakeFds[0];
199 mPollFds[wake].events = POLLIN;
200 mPollFds[wake].revents = 0;
207 close(mPollFds[wake].fd);
218 LOGE_IF(result<0, "error sending wake message (%s)", strerror(errno));
260 if (mPollFds[wake].revents & POLLIN) {
262 int result = read(mPollFds[wake].fd, &msg, 1);
263 LOGE_IF(result<0, "error reading from wake pipe (%s)", strerror(errno));
264 LOGE_IF(msg != WAKE_MESSAGE, "unknown message on wake queue (0x%02x)", int(msg));
265 mPollFds[wake].revents = 0;