| 602 | |
| 603 | #ifndef BUILD_REMOTE_PLUGIN_CLIENT |
| 604 | inline bool messagesLeft() |
| 605 | { |
| 606 | #ifdef SYNC_WITH_SHM_FIFO |
| 607 | return m_in->messagesLeft(); |
| 608 | #else |
| 609 | struct pollfd pollin; |
| 610 | pollin.fd = m_socket; |
| 611 | pollin.events = POLLIN; |
| 612 | |
| 613 | if ( poll( &pollin, 1, 0 ) == -1 ) |
| 614 | { |
| 615 | qWarning( "Unexpected poll error." ); |
| 616 | } |
| 617 | return pollin.revents & POLLIN; |
| 618 | #endif |
| 619 | } |
| 620 | |
| 621 | inline void fetchAndProcessAllMessages() |
| 622 | { |
no test coverage detected